org.apache.commons.vfs.provider
Class AbstractRandomAccessContent
java.lang.Object
org.apache.commons.vfs.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: 804273 $ $Date: 2009-08-14 17:56:52 +0200(ven, 14 ago 2009) $
- Author:
- Mario Ivankovits
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
public String readLine()
throws IOException
- Deprecated. see
DataInputStream.readLine()
- Specified by:
readLine
in interface DataInput
- Returns:
- The line as a String.
- Throws:
IOException
- if an error occurs.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.