org.apache.accumulo.start.classloader.vfs.providers
public class HdfsRandomAccessContent extends Object implements org.apache.commons.vfs2.RandomAccessContent
UnsupportedOperationException.| Constructor and Description |
|---|
HdfsRandomAccessContent(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
InputStream |
getInputStream() |
long |
length() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
seek(long pos) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String s) |
public HdfsRandomAccessContent(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileSystem fs)
throws IOException
path - A Hadoop Pathfs - A Hadoop FileSystemIOException - when the path cannot be processed.public void close()
throws IOException
close in interface org.apache.commons.vfs2.RandomAccessContentIOExceptionRandomAccessContent.close()public long getFilePointer()
throws IOException
getFilePointer in interface org.apache.commons.vfs2.RandomAccessContentIOExceptionRandomAccessContent.getFilePointer()public InputStream getInputStream() throws IOException
getInputStream in interface org.apache.commons.vfs2.RandomAccessContentIOExceptionRandomAccessContent.getInputStream()public long length()
throws IOException
length in interface org.apache.commons.vfs2.RandomAccessContentIOExceptionRandomAccessContent.length()public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionDataInput.readBoolean()public byte readByte()
throws IOException
readByte in interface DataInputIOExceptionDataInput.readByte()public char readChar()
throws IOException
readChar in interface DataInputIOExceptionDataInput.readChar()public double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionDataInput.readDouble()public float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionDataInput.readFloat()public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionDataInput.readFully(byte[])public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionDataInput.readFully(byte[], int, int)public int readInt()
throws IOException
readInt in interface DataInputIOExceptionDataInput.readInt()public String readLine() throws IOException
readLine in interface DataInputIOExceptionDataInput.readLine()public long readLong()
throws IOException
readLong in interface DataInputIOExceptionDataInput.readLong()public short readShort()
throws IOException
readShort in interface DataInputIOExceptionDataInput.readShort()public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionDataInput.readUnsignedByte()public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionDataInput.readUnsignedShort()public String readUTF() throws IOException
readUTF in interface DataInputIOExceptionDataInput.readUTF()public void seek(long pos)
throws IOException
seek in interface org.apache.commons.vfs2.RandomAccessContentIOExceptionRandomAccessContent.seek(long)public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionDataInput.skipBytes(int)public void write(byte[] b)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(byte[])public void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(byte[], int, int)public void write(int b)
throws IOException
write in interface DataOutputIOExceptionDataOutput.write(int)public void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionDataOutput.writeBoolean(boolean)public void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionDataOutput.writeByte(int)public void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionDataOutput.writeBytes(java.lang.String)public void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionDataOutput.writeChar(int)public void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionDataOutput.writeChars(java.lang.String)public void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionDataOutput.writeDouble(double)public void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionDataOutput.writeFloat(float)public void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionDataOutput.writeInt(int)public void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionDataOutput.writeLong(long)public void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionDataOutput.writeShort(int)public void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionDataOutput.writeUTF(java.lang.String)Copyright © 2014 Apache Accumulo Project. All Rights Reserved.