Package org.apache.xindice.xml

Examples of org.apache.xindice.xml.SymbolTable$SymbolInfo


    *
    * @param buffer The Hashtable
    * @return The Document
    */
   public Document convertToDocument(Hashtable buffer) {
      SymbolTable s = getSymbols(buffer);
      return new DocumentImpl((byte []) buffer.get("document"), s, null);
   }
View Full Code Here


        // lastMod = ((Long) buffer.get("timestamp")).longValue();

         Document doc = new DocumentImpl((byte []) buffer.get("symbols"), hcSyms, null);

         if ( syms == null ) {
            syms = new SymbolTable();
         }

         synchronized(syms) {
            syms.streamFromXML(doc.getDocumentElement());
         }
View Full Code Here

            data = cDoc.getDataBytes();
            pos = cDoc.getDataPos();
            len = cDoc.getDataLen();
         }
         else {
            symbols = new SymbolTable();
            data = DOMCompressor.Compress(doc, symbols);
            len = data.length;
         }
      }
      catch ( Exception e ) {
View Full Code Here

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput xci = new XMLCompressedInput(bis, st);

            xci.readSignature();      // Skip The Signature
View Full Code Here

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput xci = new XMLCompressedInput(bis, st);

            xci.readSignature(); // Skip The Signature
View Full Code Here

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput in = new XMLCompressedInput(bis, st);

            in.readSignature();   // Skip The Signature
            in.readContentSize(); // Skip The Content Size

            symbolID = in.readShort();
            SymbolTable.SymbolInfo si = st.getSymbolInfo(symbolID);
            nodeName = si.getQName();
            nsURI = si.getNamespaceURI();

            loadChildren(st);
         }
View Full Code Here

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput xci = new XMLCompressedInput(bis, st);

            byte signature = xci.readByte();
            byte entityType = (byte)(signature & 0x1F);
            switch ( entityType ) {

               case Signatures.EntUnknown:
                  nodeName = null;
                  break;

               case Signatures.EntDefined:
                  symbolID = xci.readShort();
                  nodeName = st.getName(symbolID);
                  break;

               case Signatures.EntAmp:
                  nodeName = "&";
                  break;
View Full Code Here

         }
      }

      if ( compress ) {
         if ( symbols == null )
            symbols = new SymbolTable();
         data = DOMCompressor.Compress(doc, symbols);
         pos = 0;
         len = data.length;
      }
View Full Code Here

         // Symbol Table Setup
         Configuration symConfig = config.getChild(SYMBOLS);
         internalSymbols = (symConfig != null);
         if ( internalSymbols ) {
            try {
               symbols = new SymbolTable(symConfig.getElement());
            }
            catch ( Exception e ) {
               if (log.isDebugEnabled()) {
                  log.debug("No message", e);
               }
View Full Code Here

      Document doc = null;
      if ( v instanceof Document )
         doc = (Document)v;
      else if ( v instanceof byte[] ) {
         try {
            SymbolTable s = col.getSymbols();
            NodeSource ns = new NodeSource(col, key);
            doc = new DocumentImpl((byte[])v, s, ns);
         }
         catch ( Exception e ) {
         }
View Full Code Here

TOP

Related Classes of org.apache.xindice.xml.SymbolTable$SymbolInfo

Copyright © 2018 www.massapicom. 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.