@Override public int read(byte[] b) throws IOException { return wrapped.read(b); }
private byte[] readBytes(ObjectInputStream ois) throws IOException { int len = ois.readInt(); byte[] data = new byte[len]; int actualLen = ois.read(data, 0, len); if (len != actualLen) throw log.readBytesMismatch(actualLen, len); return data; }
private Object deserialize(ByteString byteString) throws IOException, ClassNotFoundException { Buffer buffer = new Buffer(); buffer.write(byteString); try (ObjectInputStream objectIn = new ObjectInputStream(buffer.inputStream())) { Object result = objectIn.readObject(); if (objectIn.read() != -1) throw new IOException("Unconsumed bytes in stream"); return result; } }
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException { int length = stream.readInt(); byte[] trieBytes = new byte[length]; int currentCount; int idx = 0; while ((currentCount = stream.read(trieBytes, idx, length - idx)) > 0) { idx += currentCount; } init(trieBytes); }
@Override public int read() throws IOException { return wrapped.read(); }
/** {@inheritDoc} */ private void readObject(ObjectInputStream in) throws IOException { try { byte[] arr = new byte[in.readInt()]; in.read(arr); str = unmarshal(arr); val = in.readInt(); } catch (IgniteCheckedException e) { throw new IOException(e); } } }
@Override public int read(byte[] buf, int off, int len) throws IOException { return wrapped.read(buf, off, len); }
private void readObject(ObjectInputStream in) throws IOException { int length = in.readInt(); byte[] data = new byte[length]; for (int offset = 0; length > 0; length -= offset) offset = in.read(data, offset, length); in.close(); ProtostuffIOUtil.mergeFrom(data, this, RuntimeSchema.getSchema(PojoWithArrayAndSet.class)); }
/** {@inheritDoc} */ public int read() throws IOException { return ois.read(); }
/** {@inheritDoc} */ public int read(final byte[] b) throws IOException { return ois.read(b); }
/** {@inheritDoc} */ @Override public int read(byte[] b, int off, int len) throws IOException { return ois.read(b, off, len); }
/** {@inheritDoc} */ @Override public int read() throws IOException { return ois.read(); }
/** {@inheritDoc} */ @Override public int read(byte[] b) throws IOException { return ois.read(b); }
/** {@inheritDoc} */ @Override public int read(byte[] b, int off, int len) throws IOException { return ois.read(b, off, len); }
/** {@inheritDoc} */ @Override public int read() throws IOException { return ois.read(); }
/** {@inheritDoc} */ @Override public int read(byte[] b) throws IOException { return ois.read(b); }
/** {@inheritDoc} */ public int read(final byte[] buf, final int off, final int len) throws IOException { return ois.read(buf, off, len); }
@Override public int read(byte[] b) throws IOException { return wrapped.read(b); }
@Override public int read(byte[] buf, int off, int len) throws IOException { return wrapped.read(buf, off, len); }
@Override public int read() throws IOException { return wrapped.read(); }