jcifs.smb

Class SmbRandomAccessFile

Implemented Interfaces:
DataInput, DataOutput

public class SmbRandomAccessFile
extends java.lang.Object
implements DataOutput, DataInput

Constructor Summary

SmbRandomAccessFile(String url, String mode, int shareAccess)
SmbRandomAccessFile(SmbFile file, String mode)

Method Summary

void
close()
long
getFilePointer()
long
length()
int
read()
int
read(b[] )
int
read(b[] , int off, int len)
boolean
readBoolean()
byte
readByte()
char
readChar()
double
readDouble()
float
readFloat()
void
readFully(b[] )
void
readFully(b[] , int off, int len)
int
readInt()
String
readLine()
long
readLong()
short
readShort()
String
readUTF()
int
readUnsignedByte()
int
readUnsignedShort()
void
seek(long pos)
void
setLength(long newLength)
int
skipBytes(int n)
void
write(b[] )
void
write(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 str)

Constructor Details

SmbRandomAccessFile

public SmbRandomAccessFile(String url,
                           String mode,
                           int shareAccess)
            throws SmbException,
                   MalformedURLException,
                   UnknownHostException


SmbRandomAccessFile

public SmbRandomAccessFile(SmbFile file,
                           String mode)
            throws SmbException,
                   MalformedURLException,
                   UnknownHostException

Method Details

close

public void close()
            throws SmbException


getFilePointer

public long getFilePointer()
            throws SmbException


length

public long length()
            throws SmbException


read

public int read()
            throws SmbException


read

public int read(b[] )
            throws SmbException


read

public int read(b[] ,
                int off,
                int len)
            throws SmbException


readBoolean

public final boolean readBoolean()
            throws SmbException


readByte

public final byte readByte()
            throws SmbException


readChar

public final char readChar()
            throws SmbException


readDouble

public final double readDouble()
            throws SmbException


readFloat

public final float readFloat()
            throws SmbException


readFully

public final void readFully(b[] )
            throws SmbException


readFully

public final void readFully(b[] ,
                            int off,
                            int len)
            throws SmbException


readInt

public final int readInt()
            throws SmbException


readLine

public final String readLine()
            throws SmbException


readLong

public final long readLong()
            throws SmbException


readShort

public final short readShort()
            throws SmbException


readUTF

public final String readUTF()
            throws SmbException


readUnsignedByte

public final int readUnsignedByte()
            throws SmbException


readUnsignedShort

public final int readUnsignedShort()
            throws SmbException


seek

public void seek(long pos)
            throws SmbException


setLength

public void setLength(long newLength)
            throws SmbException


skipBytes

public int skipBytes(int n)
            throws SmbException


write

public void write(b[] )
            throws SmbException


write

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


write

public void write(int b)
            throws SmbException


writeBoolean

public final void writeBoolean(boolean v)
            throws SmbException


writeByte

public final void writeByte(int v)
            throws SmbException


writeBytes

public final void writeBytes(String s)
            throws SmbException


writeChar

public final void writeChar(int v)
            throws SmbException


writeChars

public final void writeChars(String s)
            throws SmbException


writeDouble

public final void writeDouble(double v)
            throws SmbException


writeFloat

public final void writeFloat(float v)
            throws SmbException


writeInt

public final void writeInt(int v)
            throws SmbException


writeLong

public final void writeLong(long v)
            throws SmbException


writeShort

public final void writeShort(int v)
            throws SmbException


writeUTF

public final void writeUTF(String str)
            throws SmbException