Examples of FastByteArrayInputStream


Examples of xbird.util.io.FastByteArrayInputStream

    /**
     * getInputStream returns an InputStream for the Value.
     */
    public final InputStream getInputStream() {
        return new FastByteArrayInputStream(_data, _pos, _len);
    }
View Full Code Here

Examples of xbird.util.io.FastByteArrayInputStream

        this._seq = seq;
    }

    public RemoteInputStream fetch(int size) throws RemoteException {
        final byte[] ary = fetchBytes(size, false);
        final FastByteArrayInputStream bis = new FastByteArrayInputStream(ary);
        final IRemoteInputStreamProxy proxy = new RemoteInputStreamProxy(bis);
        final RemoteInputStream remote = new RemoteInputStream(proxy);
        return remote;
    }
View Full Code Here

Examples of xbird.util.io.FastByteArrayInputStream

            final byte[] buf = bufOut.toByteArray();
            bufOut.clear();

            // Because input of decoder fully read, this section required for re-object serialization, etc.
            if(_reaccessable) {
                final FastByteArrayInputStream inputBuf = new FastByteArrayInputStream(buf);
                final ObjectInputStream objectInput = new ObjectInputStream(inputBuf);
                this._decoder = new XQEventDecoder(objectInput); // replace old Decoder with fresh Decoder
            }

            final int buflen = buf.length;
View Full Code Here

Examples of xbird.util.io.FastByteArrayInputStream

            this.encodedSequence = bufOut.toByteArray();
        }
    }

    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) {
View Full Code Here

Examples of xbird.util.io.FastByteArrayInputStream

        for(int i = 0; i < 18; i++) {
            codes.putGolombL(i, 4L, logm);
            final byte[] bi = codes.getBytes();
            System.out.print(Integer.toString(i) + " = " + StringUtils.toBitString(bi));
            System.out.print(", decoded = " + decodeGolombL(bi, 4L, logm));
            FastByteArrayInputStream is = new FastByteArrayInputStream(bi);
            try {
                System.out.println(", stream-decoded = " + decodeGolombL(is, 4L, logm));
            } catch (IOException e) {
                throw new IllegalStateException(e);
            }
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.