public class

RandomAccessRemoteFile

extends Object
implements DataInput DataOutput
java.lang.Object
   ↳ net.schmizz.sshj.sftp.RandomAccessRemoteFile

Summary

Fields
private long fp
private final RemoteFile rf
private final byte[] singleByte
Public Constructors
RandomAccessRemoteFile(RemoteFile rf)
Public Methods
long getFilePointer()
int read(byte[] b, int off, int len)
int read(byte[] b)
int read()
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()
String readUTF()
int readUnsignedByte()
int readUnsignedShort()
void seek(long fp)
int skipBytes(int n)
void write(int i)
void write(byte[] b, int off, int len)
void write(byte[] 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 str)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.io.DataInput
From interface java.io.DataOutput

Fields

private long fp

private final RemoteFile rf

private final byte[] singleByte

Public Constructors

public RandomAccessRemoteFile (RemoteFile rf)

Parameters
rf

Public Methods

public long getFilePointer ()

public int read (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public int read (byte[] b)

Parameters
b
Throws
IOException

public int read ()

Throws
IOException

public boolean readBoolean ()

Throws
IOException

public byte readByte ()

Throws
IOException

public char readChar ()

Throws
IOException

public double readDouble ()

Throws
IOException

public float readFloat ()

Throws
IOException

public void readFully (byte[] b)

Parameters
b
Throws
IOException

public void readFully (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public int readInt ()

Throws
IOException

public String readLine ()

Throws
IOException

public long readLong ()

Throws
IOException

public short readShort ()

Throws
IOException

public String readUTF ()

Throws
IOException

public int readUnsignedByte ()

Throws
IOException

public int readUnsignedShort ()

Throws
IOException

public void seek (long fp)

Parameters
fp

public int skipBytes (int n)

Parameters
n
Throws
IOException

public void write (int i)

Parameters
i
Throws
IOException

public void write (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public void write (byte[] b)

Parameters
b
Throws
IOException

public void writeBoolean (boolean v)

Parameters
v
Throws
IOException

public void writeByte (int v)

Parameters
v
Throws
IOException

public void writeBytes (String s)

Parameters
s
Throws
IOException

public void writeChar (int v)

Parameters
v
Throws
IOException

public void writeChars (String s)

Parameters
s
Throws
IOException

public void writeDouble (double v)

Parameters
v
Throws
IOException

public void writeFloat (float v)

Parameters
v
Throws
IOException

public void writeInt (int v)

Parameters
v
Throws
IOException

public void writeLong (long v)

Parameters
v
Throws
IOException

public void writeShort (int v)

Parameters
v
Throws
IOException

public void writeUTF (String str)

Parameters
str
Throws
IOException