Buffers in Java
An Introduction |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Buffer
objects are readableBuffer
objects
are writeableReadOnlyBufferException
being thrownisReadOnly()
methodBuffer
State Modifiers:
clear()
flip()
mark()
reset()
rewind()
Buffer
State Accessors:
capacity()
limit()
position()
E get()
put(E)