Examples of StringTable


Examples of com.volantis.xml.sax.recorder.impl.recording.StringTable

        this.discardIgnorableWhitespace =
                configuration.getDiscardIgnorableWhitespace();
        this.recordPerEventLocation = configuration.getRecordPerEventLocation();

        this.stringTable = new StringTable();
        this.intArray = new int[32];
        this.characterArray = new char[1024];
        this.attributeBuilder = new AttributeContainerBuilderImpl(stringTable);
        this.balancingEventPositionReferences = new Stack();
        recordingInProgress = true;
View Full Code Here

Examples of fr.soleil.comete.widget.StringTable

  private static final long serialVersionUID = -8674507397211276501L;

  @Override
  public AbstractWidget<?, StringMatrix> initWidget() {
    return new StringTable();
  }
View Full Code Here

Examples of fr.soleil.comete.widget.StringTable

  private static final long serialVersionUID = -8674507397211276501L;

  @Override
  public AbstractWidget<?, StringMatrix> initWidget() {
    return new StringTable();
  }
View Full Code Here

Examples of fr.soleil.comete.widget.StringTable

   *
   * @return fr.soleil.comete.widget.StringTable
   */
  public StringTable getStateOfIDsViewer() {
    if (stateOfIDsViewer == null) {
      stateOfIDsViewer = new StringTable();
      ((JComponent)stateOfIDsViewer.getComponent()).setBorder( new EmptyBorder(0, 0, 0, 0) );
      ((JComponent)stateOfIDsViewer.getComponent()).setBackground(MachineStatusConfiguration.STANDARD_BACKGROUND);
    }
    return stateOfIDsViewer;
  }
View Full Code Here

Examples of fr.soleil.comete.widget.StringTable

   *
   * @return fr.soleil.comete.widget.StringTable
   */
  public StringTable getStateOfBendingsViewer() {
    if (stateOfBendingsViewer == null) {
      stateOfBendingsViewer = new StringTable();
      ((JComponent)stateOfBendingsViewer.getComponent()).setBorder(new EmptyBorder(0, 0, 0, 0));
      ((JComponent)stateOfBendingsViewer.getComponent()).setBackground(MachineStatusConfiguration.STANDARD_BACKGROUND);
    }
    return stateOfBendingsViewer;
  }
View Full Code Here

Examples of nexj.core.util.StringTable

            return (StringTable)obj;
         }
      }

      StringTable stringTable = null;
      int i = sLocale.lastIndexOf('_');

      if (i > 0)
      {
         stringTable = getStringTable(sLocale.substring(0, i));
      }
      else if (!sLocale.equals(DEFAULT_LOCALE))
      {
         stringTable = getStringTable(DEFAULT_LOCALE);
      }

      InputStream in = null;
      Properties properties = new Properties();
      URL sysURL = null;

      // Load the system string table

      try
      {
         sysURL = SystemResources.find("client." + sLocale + ".strings");

         if (sysURL != null)
         {
            in = URLUtil.openStream(sysURL);
            properties.load(in);
         }
      }
      catch (Exception e)
      {
         if (in != null)
         {
            throw new MetadataException("err.meta.stringTableLoad", new Object[]{sysURL.toString()}, e);
         }
      }
      finally
      {
         IOUtil.close(in);
         in = null;
      }

      try
      {
         sysURL = SystemResources.find("server." + sLocale + ".strings");

         if (sysURL != null)
         {
            in = URLUtil.openStream(sysURL);
            properties.load(in);
         }
      }
      catch (Exception e)
      {
         if (in != null)
         {
            throw new MetadataException("err.meta.stringTableLoad", new Object[]{sysURL.toString()}, e);
         }
      }
      finally
      {
         IOUtil.close(in);
         in = null;
      }

      try
      {
         sysURL = SystemResources.find(sLocale + ".strings");

         if (sysURL != null)
         {
            in = URLUtil.openStream(sysURL);
            properties.load(in);
         }
      }
      catch (Exception e)
      {
         if (in != null)
         {
            throw new MetadataException("err.meta.stringTableLoad", new Object[]{sysURL.toString()}, e);
         }
      }
      finally
      {
         IOUtil.close(in);
         in = null;
      }

      // Overwrite the system string table with the repository string table

      Lookup map = (Lookup)m_stringMap.get(sLocale);
      String sResName = null;

      if (map != null)
      {
         try
         {
            for (Iterator itr = map.iterator(); itr.hasNext();)
            {
               sResName = (String)itr.next();
               in = getHelper().getResourceAsStream(sResName);
               properties.load(in);
               in.close();
               in = null;
            }
         }
         catch (IOException e)
         {
            throw new MetadataException("err.meta.stringTableLoad", new Object[]{sResName}, e);
         }
         finally
         {
            IOUtil.close(in);
         }
      }

      if (!properties.isEmpty())
      {
         stringTable = new StringTable(properties, stringTable, LocaleUtil.parse(sLocale));
      }

      synchronized (m_stringMetaMap)
      {
         Object oldMap = m_stringMetaMap.put(sLocale, stringTable);
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.strtable.StringTable

               idxFieldNameArr[arrIdx++] = st.nextToken().trim();
            }

            final File csvFile = ((FileResource) extResrc).getFile();
            try {
               final StringTable strTable = StringTableFactory.build( new FileReader( csvFile ),
                     fieldDelimiter, idxFieldNameArr, true );
               dict = new StringTableDictionaryImpl( strTable, lookupFieldName );
            } catch ( FileNotFoundException fnfE ) {
               throw new ResourceAccessException( "Could not open csv file", new Object[]{csvFile} );
            } catch (IOException ioE ) {
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.strtable.StringTable

                idxFieldNameArr[arrIdx++] = st.nextToken().trim();
            }
           
            File csvFile = ((FileResource) extResrc).getFile();
            try(FileReader fr = new FileReader(csvFile)){
              StringTable strTable = StringTableFactory.build(
                  fr,
                  fieldDelimiter,
                  idxFieldNameArr,
                  true);
              dict = new StringTableDictionaryImpl(strTable, lookupFieldName);
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.strtable.StringTable

            {
                idxFieldNameArr[arrIdx++] = st.nextToken().trim();
            }
           
            File csvFile = ((FileResource) extResrc).getFile();
            StringTable strTable = StringTableFactory.build(
                    new FileReader(csvFile),
                    fieldDelimiter,
                    idxFieldNameArr,
                    true);
            dict = new StringTableDictionaryImpl(strTable, lookupFieldName);
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.strtable.StringTable

               idxFieldNameArr[arrIdx++] = st.nextToken().trim();
            }

            final File csvFile = ((FileResource) extResrc).getFile();
            try {
               final StringTable strTable = StringTableFactory.build( new FileReader( csvFile ),
                     fieldDelimiter, idxFieldNameArr, true );
               dict = new StringTableDictionaryImpl( strTable, lookupFieldName );
            } catch ( FileNotFoundException fnfE ) {
               throw new ResourceAccessException( "Could not open csv file", new Object[]{csvFile} );
            } catch (IOException ioE ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.