@Test public void at_eof() throws Exception { direct.putLong(17).flip(); XdrBufferDecodingStream direct_decoder = new XdrBufferDecodingStream(direct); array.putLong(19).flip(); XdrBufferDecodingStream array_decoder = new XdrBufferDecodingStream(array); assertFalse(direct_decoder.atEof()); direct_decoder.xdrDecodeLong(); assertTrue(direct_decoder.atEof()); assertFalse(array_decoder.atEof()); array_decoder.xdrDecodeLong(); assertTrue(array_decoder.atEof()); }
public boolean atEof() throws IOException { return !buf_.hasRemaining() && (buf_supplier_ == null || buf_supplier_.atEof()); }
XdrBufferDecodingStream extends XdrDecodingStream { public boolean atEof() throws IOException { return !buf_.hasRemaining() && (buf_supplier_ == null || buf_supplier_.atEof()); } }
XdrBufferDecodingStream extends XdrDecodingStream { public boolean atEof() throws IOException { return !buf_.hasRemaining() && (buf_supplier_ == null || buf_supplier_.atEof()); } XdrBufferDecodingStream(ByteBuffer buf, BufferSupplier buf_supplier);  XdrBufferDecodingStream(BufferSupplier buf_supplier);  XdrBufferDecodingStream(int bufsize, BufferSupplier buf_supplier);  XdrBufferDecodingStream(ByteBuffer buf); }
XdrBufferDecodingStream extends XdrDecodingStream { public boolean atEof() throws IOException { return !buf_.hasRemaining() && (buf_supplier_ == null || buf_supplier_.atEof()); } XdrBufferDecodingStream(ByteBuffer buf, BufferSupplier buf_supplier);  XdrBufferDecodingStream(BufferSupplier buf_supplier);  XdrBufferDecodingStream(int bufsize, BufferSupplier buf_supplier);  XdrBufferDecodingStream(ByteBuffer buf); @Override void beginDecoding(); @Override void endDecoding(); @Override InetAddress getSenderAddress(); @Override int getSenderPort(); @Override int xdrDecodeInt(); @Override byte[] xdrDecodeOpaque(int length); @Override void xdrDecodeOpaque(byte[] opaque, int offset, int length); long readBytes(); long avail(); boolean atEof(); }
XdrBufferDecodingStream extends XdrDecodingStream { public boolean atEof() throws IOException { return !buf_.hasRemaining() && (buf_supplier_ == null || buf_supplier_.atEof()); } XdrBufferDecodingStream(ByteBuffer buf, BufferSupplier buf_supplier);  XdrBufferDecodingStream(BufferSupplier buf_supplier);  XdrBufferDecodingStream(int bufsize, BufferSupplier buf_supplier);  XdrBufferDecodingStream(ByteBuffer buf); @Override void beginDecoding(); @Override void endDecoding(); @Override InetAddress getSenderAddress(); @Override int getSenderPort(); @Override int xdrDecodeInt(); @Override byte[] xdrDecodeOpaque(int length); @Override void xdrDecodeOpaque(byte[] opaque, int offset, int length); long readBytes(); long avail(); boolean atEof();  }