Package org.apache.commons.vfs2.provider
Class AbstractRandomAccessContent
java.lang.Object
org.apache.commons.vfs2.provider.AbstractRandomAccessContent
- All Implemented Interfaces:
Closeable
,DataInput
,DataOutput
,AutoCloseable
,RandomAccessContent
- Direct Known Subclasses:
AbstractRandomAccessStreamContent
Implements the
DataOutput
part of the RandomAccessContent
interface and throws
UnsupportedOperationException
when one of these methods are called. For read-only random access
implementations.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs a new instance for subclasses. -
Method Summary
Modifier and TypeMethodDescriptionreadLine()
Deprecated.void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) void
writeBoolean
(boolean v) void
writeByte
(int v) void
writeBytes
(String s) void
writeChar
(int v) void
writeChars
(String s) void
writeDouble
(double v) void
writeFloat
(float v) void
writeInt
(int v) void
writeLong
(long v) void
writeShort
(int v) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface org.apache.commons.vfs2.RandomAccessContent
close, getFilePointer, getInputStream, length, seek, setLength
-
Constructor Details
-
AbstractRandomAccessContent
Constructs a new instance for subclasses.- Parameters:
mode
- the RandomAccessMode.
-
-
Method Details
-
readLine
Deprecated.seeDataInputStream.readLine()
This method will be removed when it is removed from the DataInput interface this class implements (which will probably never happen).- Specified by:
readLine
in interfaceDataInput
- Returns:
- The line as a String.
- Throws:
IOException
- if an error occurs.
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Throws:
IOException
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-
DataInputStream.readLine()
This method will be removed when it is removed from the DataInput interface this class implements (which will probably never happen).