Package org.apache.xindice.util

Examples of org.apache.xindice.util.SymbolDeserializer


            /*
             * If we get a Hashtable back then the result is compressed.
             */
            if ( result instanceof Hashtable ) {
               Hashtable compressed = (Hashtable) result;
               SymbolDeserializer symbolDeserial = new SymbolDeserializer();
               return new XMLResourceImpl(id, id, this,
                                          symbolDeserial.getSymbols(compressed),
                                          (byte []) compressed.get("document"));
            }
            else {
               return new XMLResourceImpl(id, (String) result, this);
            }
View Full Code Here


            if (result == null) {
                // No resource found
                return null;
            } else if (result instanceof Hashtable) {
                Hashtable compressed = (Hashtable) result;
                SymbolDeserializer symbolDeserial = new SymbolDeserializer();
                return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));
            } else if (result instanceof byte[]) {
                return new BinaryResourceImpl(id, this, (byte[]) result);
            } else {
                return new XMLResourceImpl(id, this, (String) result);
            }
View Full Code Here

                // No resource found
                return null;
            } else if (result instanceof Hashtable) {
                // Result is compressed XML.
                Hashtable compressed = (Hashtable) result;
                SymbolDeserializer symbolDeserial = new SymbolDeserializer();
                return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));
            } else if (result instanceof byte[]) {
                // Result is binary.
                return new BinaryResourceImpl(id, this, (byte[]) result);
            } else {
                // Result is XML.
View Full Code Here

                return null;

            } else if (result instanceof Map) {
                // Result is compressed XML.
                Map compressed = (Map) result;
                SymbolDeserializer symbolDeserial = new SymbolDeserializer();
                return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));

            } else if (result instanceof byte[]) {
                // Result is binary.
                return new BinaryResourceImpl(id, this, (byte[]) result);
View Full Code Here

                // No resource found
                return null;
            } else if (result instanceof Hashtable) {
                // Result is compressed XML.
                Hashtable compressed = (Hashtable) result;
                SymbolDeserializer symbolDeserial = new SymbolDeserializer();
                return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));
            } else if (result instanceof byte[]) {
                // Result is binary.
                return new BinaryResourceImpl(id, this, (byte[]) result);
            } else {
                // Result is XML.
View Full Code Here

TOP

Related Classes of org.apache.xindice.util.SymbolDeserializer

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.