com.moesol.nio
Interface BufferMarker

All Known Implementing Classes:
UnsignedByteBuffer, UnsignedLongBuffer, UnsignedShortBuffer

public interface BufferMarker

Marker interface for our extended buffer types. See IntBuffer, ShortBuffer, etc. We would have just derived from Buffer, but apparently sun had other ideas.


Method Summary
 int capacity()
           
 BufferMarker clear()
           
 BufferMarker flip()
           
 ByteBuffer getByteBuffer()
           
 boolean hasRemaining()
           
 boolean isReadOnly()
           
 int limit()
           
 BufferMarker limit(int newLimit)
           
 BufferMarker mark()
           
 int position()
           
 BufferMarker position(int newPosition)
           
 int remaining()
           
 BufferMarker reset()
           
 BufferMarker rewind()
           
 

Method Detail

capacity

int capacity()

position

int position()

position

BufferMarker position(int newPosition)

limit

int limit()

limit

BufferMarker limit(int newLimit)

mark

BufferMarker mark()

reset

BufferMarker reset()

clear

BufferMarker clear()

flip

BufferMarker flip()

rewind

BufferMarker rewind()

remaining

int remaining()

hasRemaining

boolean hasRemaining()

isReadOnly

boolean isReadOnly()

getByteBuffer

ByteBuffer getByteBuffer()


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.