public class SimpleInputStream
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
SimpleInputStream(java.io.InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition() |
byte |
readByte() |
byte[] |
readBytes() |
java.lang.Double |
readDouble() |
java.lang.Float |
readFloat() |
java.lang.Integer |
readInt() |
java.lang.Long |
readLong() |
java.lang.Short |
readShort() |
java.lang.String |
readString() |
public java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionpublic byte[] readBytes()
throws java.io.IOException
java.io.IOExceptionpublic byte readByte()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Short readShort()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Integer readInt()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Long readLong()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Double readDouble()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Float readFloat()
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseablepublic long getPosition()