public abstract class AbstractRandomAccessStreamContent extends AbstractRandomAccessContent
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRandomAccessStreamContent(RandomAccessMode mode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract DataInputStream |
getDataInputStream() |
InputStream |
getInputStream()
Get the input stream.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int n) |
readLine, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getFilePointer, length, seekprotected AbstractRandomAccessStreamContent(RandomAccessMode mode)
protected abstract DataInputStream getDataInputStream() throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic char readChar()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readUnsignedByte()
throws IOException
IOExceptionpublic int readUnsignedShort()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic boolean readBoolean()
throws IOException
IOExceptionpublic int skipBytes(int n)
throws IOException
IOExceptionpublic void readFully(byte[] b)
throws IOException
IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic String readUTF() throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
RandomAccessContentRandomAccessContent.seek(long) you have to reget the InputStreamIOException - if an I/O error occurs.Copyright © 2002–2017 WSO2. All rights reserved.