|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
simogl.model.modelloader.MD2InputStream
public class MD2InputStream
Wrapper for an input stream
Constructor Summary | |
---|---|
MD2InputStream(java.io.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. |
java.lang.String |
readString()
Liest einen String aus. |
java.lang.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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MD2InputStream(java.io.InputStream input)
input
- Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public byte[] readBytes(int numBytes) throws java.io.IOException
numBytes
- Anzahl der zu lesenden Bytes.
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public float readFloat() throws java.io.IOException
java.io.IOException
public java.lang.String readString(int length) throws java.io.IOException
length
- Länge des Strings.
java.io.IOException
public java.lang.String readString() throws java.io.IOException
java.io.IOException
public short readShort() throws java.io.IOException
java.io.IOException
public void skip(int numBytes) throws java.io.IOException
numBytes
- Anzahl der zu überspringenden Bytes.
java.io.IOException
public int getByteCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |