|
jjdh API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
jjdh.java.resource.loader.MD2InputStream
public class MD2InputStream
Field Summary | |
---|---|
protected int |
byteCount
|
protected InputStream |
input
|
Constructor Summary | |
---|---|
MD2InputStream(InputStream input)
Konstruktor. |
Method Summary | |
---|---|
int |
getByteCount()
Gibt Aufschluss darüber, wie viele Bytes bereits gelesen wurden. |
int |
read()
|
byte[] |
readBytes(int numBytes)
Liest n Bytes aus. |
float |
readFloat()
Liest einen Float-Wert aus. |
int |
readInt()
Liest einen Int-Wert aus. |
short |
readShort()
Liest einen Short-Wert aus. |
String |
readString()
Liest einen String aus. |
String |
readString(int length)
Liest einen String aus. |
void |
skip(int numBytes)
Überspringt beliebig viele Bytes des Streams. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InputStream input
protected int byteCount
Constructor Detail |
---|
public MD2InputStream(InputStream input)
input
- Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public byte[] readBytes(int numBytes) throws IOException
numBytes
- Anzahl der zu lesenden Bytes.
IOException
public int readInt() throws IOException
IOException
public float readFloat() throws IOException
IOException
public String readString(int length) throws IOException
length
- Länge des Strings.
IOException
public String readString() throws IOException
IOException
public short readShort() throws IOException
IOException
public void skip(int numBytes) throws IOException
numBytes
- Anzahl der zu überspringenden Bytes.
IOException
public int getByteCount()
|
jjdh API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |