org.apache.commons.vfs2.provider
Class AbstractRandomAccessContent
java.lang.Object
org.apache.commons.vfs2.provider.AbstractRandomAccessContent
- All Implemented Interfaces:
- DataInput, DataOutput, RandomAccessContent
- Direct Known Subclasses:
- AbstractRandomAccessStreamContent
public abstract class AbstractRandomAccessContent
- extends Object
- implements RandomAccessContent
Implements the DataOutput part of the RandomAccessContent interface and throws
UnsupportedOperationException if one of those methods are called.
(for read-only random access implementations)
- Version:
- $Revision: 1040766 $ $Date: 2010-12-01 02:06:53 +0530 (Wed, 01 Dec 2010) $
- Author:
- Commons VFS team
| 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 |
AbstractRandomAccessContent
protected AbstractRandomAccessContent(RandomAccessMode mode)
writeDouble
public void writeDouble(double v)
throws IOException
- Specified by:
writeDouble in interface DataOutput
- Throws:
IOException
writeFloat
public void writeFloat(float v)
throws IOException
- Specified by:
writeFloat in interface DataOutput
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in interface DataOutput
- Throws:
IOException
writeByte
public void writeByte(int v)
throws IOException
- Specified by:
writeByte in interface DataOutput
- Throws:
IOException
writeChar
public void writeChar(int v)
throws IOException
- Specified by:
writeChar in interface DataOutput
- Throws:
IOException
writeInt
public void writeInt(int v)
throws IOException
- Specified by:
writeInt in interface DataOutput
- Throws:
IOException
writeShort
public void writeShort(int v)
throws IOException
- Specified by:
writeShort in interface DataOutput
- Throws:
IOException
writeLong
public void writeLong(long v)
throws IOException
- Specified by:
writeLong in interface DataOutput
- Throws:
IOException
writeBoolean
public void writeBoolean(boolean v)
throws IOException
- Specified by:
writeBoolean in interface DataOutput
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Specified by:
write in interface DataOutput
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Specified by:
write in interface DataOutput
- Throws:
IOException
writeBytes
public void writeBytes(String s)
throws IOException
- Specified by:
writeBytes in interface DataOutput
- Throws:
IOException
writeChars
public void writeChars(String s)
throws IOException
- Specified by:
writeChars in interface DataOutput
- Throws:
IOException
writeUTF
public void writeUTF(String str)
throws IOException
- Specified by:
writeUTF in interface DataOutput
- Throws:
IOException
readLine
@Deprecated
public String readLine()
throws IOException
- Deprecated. see
DataInputStream.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 interface DataInput
- Returns:
- The line as a String.
- Throws:
IOException - if an error occurs.
Copyright © 2002–2015 WSO2. All rights reserved.