|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface contains methods useful both for input and output, but itself cannot be clasified neither as input nor as output. The name "ISeekable" is rather misleading.
| Field Summary | |
static int |
BIG_ENDIAN
|
static int |
LITTLE_ENDIAN
|
| Method Summary | |
void |
close()
|
int |
getByteOrder()
get byte order |
long |
getFilePointer()
Since this is an interface and is not restricted to files, "getFilePointer" is wrong name for this method. |
boolean |
isBuffered()
|
long |
length()
get length of data |
void |
seek(long offset)
set current cursor position to specified offset |
void |
setByteOrder(int byteOrder)
set byte order |
| Field Detail |
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
| Method Detail |
public int getByteOrder()
BIG_ENDIAN,
LITTLE_ENDIANpublic void setByteOrder(int byteOrder)
byteOrder - BIG_ENDIAN,
LITTLE_ENDIAN
public long getFilePointer()
throws java.io.IOException
java.io.IOException
public long length()
throws java.io.IOException
java.io.IOException
public void seek(long offset)
throws java.io.IOException
offset
offset - new cursor position
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean isBuffered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||