Package org.apache.commons.vfs.provider
Class AbstractRandomAccessStreamContent
java.lang.Object
org.apache.commons.vfs.provider.AbstractRandomAccessContent
org.apache.commons.vfs.provider.AbstractRandomAccessStreamContent
- All Implemented Interfaces:
DataInput
,DataOutput
,RandomAccessContent
Implements the part usable for all stream base random access implementations
- Version:
- $Revision: 485638 $ $Date: 2006-12-11 13:20:55 +0100 (Mon, 11 Dec 2006) $
- Author:
- Mario Ivankovits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DataInputStream
get the input stream
Notice: If you useRandomAccessContent.seek(long)
you have to reget the InputStreamboolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
long
readLong()
short
int
int
readUTF()
int
skipBytes
(int n) Methods inherited from class org.apache.commons.vfs.provider.AbstractRandomAccessContent
readLine, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.vfs.RandomAccessContent
close, getFilePointer, length, seek
-
Constructor Details
-
AbstractRandomAccessStreamContent
-
-
Method Details
-
getDataInputStream
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readChar
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readUnsignedShort
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readUTF
- Throws:
IOException
-
getInputStream
Description copied from interface:RandomAccessContent
get the input stream
Notice: If you useRandomAccessContent.seek(long)
you have to reget the InputStream- Throws:
IOException
-