public class RACRandomAccessFile extends RandomAccessFile implements RandomAccessContent
RandomAccessContent instance, allowing it to be used
as a RandomAccessFile instance.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
singleByteBuf |
| Constructor and Description |
|---|
RACRandomAccessFile(RandomAccessContent rac) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
InputStream |
getInputStream() |
long |
length() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
void |
setLength(long newLength) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
getChannel, getFD, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTFpublic RACRandomAccessFile(RandomAccessContent rac) throws IOException
IOExceptionpublic long getFilePointer()
throws IOException
getFilePointer in interface RandomAccessContentgetFilePointer in class RandomAccessFileIOExceptionpublic void seek(long pos)
throws IOException
seek in interface RandomAccessContentseek in class RandomAccessFileIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in class RandomAccessFileIOExceptionpublic long length()
throws IOException
length in interface RandomAccessContentlength in class RandomAccessFileIOExceptionpublic void setLength(long newLength)
throws IOException
setLength in class RandomAccessFileIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface RandomAccessContentIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface RandomAccessContentclose in class RandomAccessFileIOExceptionpublic final int read(byte[] b)
throws IOException
read in class RandomAccessFileIOExceptionRandomAccessFile.read(byte[])public final int read()
throws IOException
read in class RandomAccessFileIOExceptionRandomAccessFile.read()public int read(byte[] b,
int off,
int len)
throws IOException
read in class RandomAccessFileIOExceptionpublic final void write(int b)
throws IOException
write in interface DataOutputwrite in class RandomAccessFileIOExceptionRandomAccessFile.write(int)public final void write(byte[] b)
throws IOException
write in interface DataOutputwrite in class RandomAccessFileIOExceptionRandomAccessFile.write(byte[])public void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in class RandomAccessFileIOExceptionRandomAccessFile.write(byte[],int,int)Copyright © 2002–2016 WSO2. All rights reserved.