public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }
public boolean readBoolean() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readBoolean(); }
public byte readByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readByte(); }
public int skipBytes(final int n) throws IOException { while (remaining == 0) { final int v = riverUnmarshaller.read(); if (v == -1) { return -1; } readBlockHeader(v); } final int remaining = this.remaining; if (remaining == -1) { return -1; } final int cnt = riverUnmarshaller.skipBytes(Math.min(remaining, n)); this.remaining = remaining - cnt; return cnt; }
public int read(final byte[] b, final int off, final int len) throws IOException { while (remaining == 0) { final int v = riverUnmarshaller.read(); if (v == -1) { return -1; } readBlockHeader(v); } final int remaining = this.remaining; if (remaining == -1) { return -1; } final int cnt = riverUnmarshaller.read(b, off, Math.min(remaining, len)); this.remaining = remaining - cnt; return cnt; }
public long skip(final long n) throws IOException { while (remaining == 0) { final int v = riverUnmarshaller.read(); if (v == -1) { return -1; } readBlockHeader(v); } final int remaining = this.remaining; if (remaining == -1) { return -1; } final int cnt = riverUnmarshaller.skipBytes((int)Math.min((long)remaining, n)); this.remaining = remaining - cnt; return cnt; }
public int read() throws IOException { while (remaining == 0) { final int v = riverUnmarshaller.read(); if (v == -1) { return -1; } readBlockHeader(v); } if (remaining == -1) { return -1; } remaining--; return riverUnmarshaller.read(); }
void readToEndBlockData() throws IOException, ClassNotFoundException { for (;;) { while (remaining > 0) { skipBytes(remaining); } final int b = riverUnmarshaller.read(); switch (b) { case -1: remaining = -1; return; case Protocol.ID_END_BLOCK_DATA: remaining = -1; return; case Protocol.ID_START_BLOCK_SMALL: case Protocol.ID_START_BLOCK_MEDIUM: case Protocol.ID_START_BLOCK_LARGE: readBlockHeader(b); break; default: // consume object... or whatever riverUnmarshaller.doReadObject(b, false, true); break; } } }
public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }
public boolean readBoolean() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readBoolean(); }
public byte readByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readByte(); }
public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }
public boolean readBoolean() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readBoolean(); }
public boolean readBoolean() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readBoolean(); }
public byte readByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readByte(); }
public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }
public boolean readBoolean() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readBoolean(); }
public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }
public byte readByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readByte(); }
public int readUnsignedByte() throws IOException { while (remaining == 0) { readBlockHeader(riverUnmarshaller.readUnsignedByte()); } if (remaining == -1) { throw new EOFException(); } remaining--; return riverUnmarshaller.readUnsignedByte(); }