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, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getFilePointer, length, seek
protected AbstractRandomAccessStreamContent(RandomAccessMode mode)
protected abstract DataInputStream getDataInputStream() throws IOException
IOException
public byte readByte() throws IOException
IOException
public char readChar() throws IOException
IOException
public double readDouble() throws IOException
IOException
public float readFloat() throws IOException
IOException
public int readInt() throws IOException
IOException
public int readUnsignedByte() throws IOException
IOException
public int readUnsignedShort() throws IOException
IOException
public long readLong() throws IOException
IOException
public short readShort() throws IOException
IOException
public boolean readBoolean() throws IOException
IOException
public int skipBytes(int n) throws IOException
IOException
public void readFully(byte[] b) throws IOException
IOException
public void readFully(byte[] b, int off, int len) throws IOException
IOException
public String readUTF() throws IOException
IOException
public InputStream getInputStream() throws IOException
RandomAccessContent
RandomAccessContent.seek(long)
you have to reget the InputStreamIOException
- if an I/O error occurs.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.