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
ConstructorsModifierConstructorDescriptionprotectedConstructs a new instance for subclasses. -
Method Summary
Modifier and TypeMethodDescriptionreadLine()Deprecated.voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) voidwriteBoolean(boolean v) voidwriteByte(int v) voidwriteBytes(String s) voidwriteChar(int v) voidwriteChars(String s) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidwriteShort(int v) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods 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:
readLinein interfaceDataInput- Returns:
- The line as a String.
- Throws:
IOException- if an error occurs.
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChar
- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException
-
writeChars
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeUTF
- Specified by:
writeUTFin 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).