Package com.sleepycat.bdb.util

Examples of com.sleepycat.bdb.util.FastInputStream


        fo.reset();
        ObjectOutputStream oos = new ObjectOutputStream(fo);
        oos.writeObject(new Data());
        byte[] bytes = fo.toByteArray();
        FastInputStream fi = new FastInputStream(bytes);
        ObjectInputStream ois = new ObjectInputStream(fi);
        ois.readObject();
        return bytes.length;
    }
View Full Code Here


        fo.reset();
        SerialOutput oos = new SerialOutput(fo, jtc);
        oos.writeObject(new Data());
        byte[] bytes = fo.toByteArray();
        FastInputStream fi = new FastInputStream(bytes);
        SerialInput ois = new SerialInput(fi, jtc);
        ois.readObject();
        return (bytes.length - SerialOutput.getStreamHeader().length);
    }
View Full Code Here

        fo.reset();
        OutputStreamWriter writer = new OutputStreamWriter(fo);
        new Data().writeXmlText(writer);

        byte[] bytes = fo.toByteArray();
        FastInputStream fi = new FastInputStream(bytes);
        InputSource input = new InputSource(fi);
        parser.parse(input);

        //InputStreamReader reader = new InputStreamReader(fi);
        //new Data().readXmlText(??);
View Full Code Here

        System.arraycopy(hdr, 0, bufWithHeader, 0, hdr.length);
        System.arraycopy(data.getDataBytes(), data.getDataOffset(),
                         bufWithHeader, hdr.length, length);

        SerialInput jin = new SerialInput(
            new FastInputStream(bufWithHeader, 0, bufWithHeader.length),
            classCatalog);

        try {
            object = jin.readObject();
        } catch (ClassNotFoundException e) {
View Full Code Here

TOP

Related Classes of com.sleepycat.bdb.util.FastInputStream

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.