|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.ByteArrayInputStream
org.deken.game.utils.LoopingByteInputStream
public class LoopingByteInputStream
Title: LoopingByteInputStream
Description: TODO
Copyright: Copyright (c) 2006
Field Summary |
---|
Fields inherited from class java.io.ByteArrayInputStream |
---|
buf, count, mark, pos |
Constructor Summary | |
---|---|
LoopingByteInputStream(byte[] buffer)
LoopingByteInputStream |
Method Summary | |
---|---|
void |
close()
close |
int |
read(byte[] buffer,
int offset,
int length)
read |
Methods inherited from class java.io.ByteArrayInputStream |
---|
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.io.InputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoopingByteInputStream(byte[] buffer)
Creates a new LoopingByteInputStream with the specified byte array.
buffer
- byte[]Method Detail |
---|
public int read(byte[] buffer, int offset, int length)
Reads length bytes from the array. If the end of the array is readed, the reading starts over from the beginning of the array. Returns -1 if the array has been closed.
read
in class java.io.ByteArrayInputStream
buffer
- byte[]offset
- intlength
- int
public void close() throws java.io.IOException
Closes the stream. Future calls to the read() method will return -1.
close
in interface java.io.Closeable
close
in class java.io.ByteArrayInputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |