Package xbird.xquery.dm.coder

Examples of xbird.xquery.dm.coder.XQEventDecoder.decode()


                    this._piped = false;
                    decoder = bulkIn(in); // This is required for nested Object serialization/deserialization                   
                }
                if(DEBUG_DESER_SPEED) {
                    try {
                        this._entity = decoder.decode();
                    } catch (XQueryException e) {
                        throw new IllegalStateException("failed decoding", e);
                    }
                } else {
                    final IncrDecodedSequnece entity = new IncrDecodedSequnece(decoder, type);
View Full Code Here


        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
            assert (_toReplace == null);
            final XQEventDecoder decoder = new XQEventDecoder(in);
            final Sequence<Item> decoded;
            try {
                decoded = decoder.decode();
            } catch (IOException ioe) {
                throw new XQRTException("decode failed", ioe);
            } catch (XQueryException xqe) {
                throw new XQRTException(xqe);
            } catch (Throwable e) {
View Full Code Here

            } else {
                final StopWatch sw = new StopWatch("Elapsed time for decoding `$" + getName()
                        + '\'');
                final XQEventDecoder decoder = new XQEventDecoder(in);
                try {
                    this._result = decoder.decode();
                } catch (XQueryException xqe) {
                    throw new IllegalStateException("failed decoding `$" + getName() + '\'', xqe);
                } catch (Throwable e) {
                    throw new IllegalStateException("failed decoding `$" + getName() + '\'', e);
                }
View Full Code Here

    private static Sequence decode(final byte[] b) throws IOException {
        FastByteArrayInputStream inputBuf = new FastByteArrayInputStream(b);
        ObjectInputStream objInput = new ObjectInputStream(inputBuf);
        final XQEventDecoder decoder = new XQEventDecoder(objInput);
        try {
            return decoder.decode();
        } catch (XQueryException e) {
            throw new IOException(PrintUtils.prettyPrintStackTrace(e));
        }
    }
View Full Code Here

            } else {
                final StopWatch sw = new StopWatch("Elapsed time for decoding `$" + getName()
                        + '\'');
                final XQEventDecoder decoder = new XQEventDecoder(in);
                try {
                    this._result = decoder.decode();
                } catch (XQueryException xqe) {
                    throw new IllegalStateException("failed decoding `$" + getName() + '\'', xqe);
                } catch (Throwable e) {
                    throw new IllegalStateException("failed decoding `$" + getName() + '\'', e);
                }
View Full Code Here

        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
            assert (_toReplace == null);
            final XQEventDecoder decoder = new XQEventDecoder(in);
            final Sequence<Item> decoded;
            try {
                decoded = decoder.decode();
            } catch (IOException ioe) {
                throw new XQRTException("decode failed", ioe);
            } catch (XQueryException xqe) {
                throw new XQRTException(xqe);
            } catch (Throwable e) {
View Full Code Here

                    this._piped = false;
                    decoder = bulkIn(in); // This is required for nested Object serialization/deserialization                   
                }
                if(DEBUG_DESER_SPEED) {
                    try {
                        this._entity = decoder.decode();
                    } catch (XQueryException e) {
                        throw new IllegalStateException("failed decoding", e);
                    }
                } else {
                    final IncrDecodedSequnece entity = new IncrDecodedSequnece(decoder, type);
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.