Package java.io

Examples of java.io.ObjectInput.readByte()


        final XDMTreeBuilder handler = new XDMTreeBuilder();
        final List<Item> items = new ArrayList<Item>(256);
        boolean prevNodeStart = false;
        final ObjectInput input = _input;
        while(true) {
            final byte ev = input.readByte();
            if(ev == XQEventEncoder.EV_EOF) {
                handler.endItem(true);
                break;
            }
            switch(ev) {
View Full Code Here


     * @param null if there are no items.
     */
    public Item decodeItem(final XDMTreeBuilder handler) throws IOException, XQueryException {
        final ObjectInput input = _input;
        while(true) {
            final byte ev = input.readByte();
            switch(ev) {
                case XQEventEncoder.EV_ATOM: {
                    final AtomicValue atom;
                    try {
                        atom = AtomicValue.readAtomicValue(input);
View Full Code Here

    }

    public void redirectTo(ObjectOutput out) throws IOException {
        final ObjectInput input = _input;
        while(true) {
            final byte ev = input.readByte();
            out.writeByte(ev);
            if(ev == XQEventEncoder.EV_EOF) {
                return;
            }
            switch(ev) {
View Full Code Here

        }


        for (byte b=0;b<values.length;b++)
        {
            assertEquals((byte)(b+1),input.readByte());
        }

        for (int i=0;i<10;i++)
        {
            String value = input.readUTF();
View Full Code Here

        assertEquals("hello",input.readUTF());

        for (byte b=0;b<values.length;b++)
        {
            assertEquals((byte)(b+1),input.readByte());
        }


    }
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.