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 SummaryConstructorsModifierConstructorDescriptionprotectedConstructs a new instance for subclasses.
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInputreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods inherited from interface org.apache.commons.vfs2.RandomAccessContentclose, getFilePointer, getInputStream, length, seek, setLength
- 
Constructor Details- 
AbstractRandomAccessContentConstructs a new instance for subclasses.- Parameters:
- mode- the RandomAccessMode.
 
 
- 
- 
Method Details- 
readLineDeprecated.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 interface- DataInput
- Returns:
- The line as a String.
- Throws:
- IOException- if an error occurs.
 
- 
write- Specified by:
- writein interface- DataOutput
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- DataOutput
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- DataOutput
- Throws:
- IOException
 
- 
writeBoolean- Specified by:
- writeBooleanin interface- DataOutput
- Throws:
- IOException
 
- 
writeByte- Specified by:
- writeBytein interface- DataOutput
- Throws:
- IOException
 
- 
writeBytes- Specified by:
- writeBytesin interface- DataOutput
- Throws:
- IOException
 
- 
writeChar- Specified by:
- writeCharin interface- DataOutput
- Throws:
- IOException
 
- 
writeChars- Specified by:
- writeCharsin interface- DataOutput
- Throws:
- IOException
 
- 
writeDouble- Specified by:
- writeDoublein interface- DataOutput
- Throws:
- IOException
 
- 
writeFloat- Specified by:
- writeFloatin interface- DataOutput
- Throws:
- IOException
 
- 
writeInt- Specified by:
- writeIntin interface- DataOutput
- Throws:
- IOException
 
- 
writeLong- Specified by:
- writeLongin interface- DataOutput
- Throws:
- IOException
 
- 
writeShort- Specified by:
- writeShortin interface- DataOutput
- Throws:
- IOException
 
- 
writeUTF- Specified by:
- writeUTFin interface- DataOutput
- 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).