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.RandomAccessContent
IOException
RandomAccessContent.close()
public long getFilePointer() throws IOException
getFilePointer
in interface org.apache.commons.vfs2.RandomAccessContent
IOException
RandomAccessContent.getFilePointer()
public InputStream getInputStream() throws IOException
getInputStream
in interface org.apache.commons.vfs2.RandomAccessContent
IOException
RandomAccessContent.getInputStream()
public long length() throws IOException
length
in interface org.apache.commons.vfs2.RandomAccessContent
IOException
RandomAccessContent.length()
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
IOException
DataInput.readBoolean()
public byte readByte() throws IOException
readByte
in interface DataInput
IOException
DataInput.readByte()
public char readChar() throws IOException
readChar
in interface DataInput
IOException
DataInput.readChar()
public double readDouble() throws IOException
readDouble
in interface DataInput
IOException
DataInput.readDouble()
public float readFloat() throws IOException
readFloat
in interface DataInput
IOException
DataInput.readFloat()
public void readFully(byte[] b) throws IOException
readFully
in interface DataInput
IOException
DataInput.readFully(byte[])
public void readFully(byte[] b, int off, int len) throws IOException
readFully
in interface DataInput
IOException
DataInput.readFully(byte[], int, int)
public int readInt() throws IOException
readInt
in interface DataInput
IOException
DataInput.readInt()
public String readLine() throws IOException
readLine
in interface DataInput
IOException
DataInput.readLine()
public long readLong() throws IOException
readLong
in interface DataInput
IOException
DataInput.readLong()
public short readShort() throws IOException
readShort
in interface DataInput
IOException
DataInput.readShort()
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
IOException
DataInput.readUnsignedByte()
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
IOException
DataInput.readUnsignedShort()
public String readUTF() throws IOException
readUTF
in interface DataInput
IOException
DataInput.readUTF()
public void seek(long pos) throws IOException
seek
in interface org.apache.commons.vfs2.RandomAccessContent
IOException
RandomAccessContent.seek(long)
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
IOException
DataInput.skipBytes(int)
public void write(byte[] b) throws IOException
write
in interface DataOutput
IOException
DataOutput.write(byte[])
public void write(byte[] b, int off, int len) throws IOException
write
in interface DataOutput
IOException
DataOutput.write(byte[], int, int)
public void write(int b) throws IOException
write
in interface DataOutput
IOException
DataOutput.write(int)
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface DataOutput
IOException
DataOutput.writeBoolean(boolean)
public void writeByte(int v) throws IOException
writeByte
in interface DataOutput
IOException
DataOutput.writeByte(int)
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
DataOutput.writeBytes(java.lang.String)
public void writeChar(int v) throws IOException
writeChar
in interface DataOutput
IOException
DataOutput.writeChar(int)
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
DataOutput.writeChars(java.lang.String)
public void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
IOException
DataOutput.writeDouble(double)
public void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
IOException
DataOutput.writeFloat(float)
public void writeInt(int v) throws IOException
writeInt
in interface DataOutput
IOException
DataOutput.writeInt(int)
public void writeLong(long v) throws IOException
writeLong
in interface DataOutput
IOException
DataOutput.writeLong(long)
public void writeShort(int v) throws IOException
writeShort
in interface DataOutput
IOException
DataOutput.writeShort(int)
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException
DataOutput.writeUTF(java.lang.String)
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.