java.io
Class RandomAccessFile

java.lang.Object
  extended by java.io.RandomAccessFile
All Implemented Interfaces:
DataInput, DataOutput

public class RandomAccessFile
extends Object
implements DataInput, DataOutput


Constructor Summary
RandomAccessFile(File var0, String var1)
           
RandomAccessFile(String var0, String var1)
           
 
Method Summary
 void close()
           
 FileDescriptor getFD()
           
 long getFilePointer()
           
 long length()
           
 int read()
           
 int read(byte[] var0)
           
 int read(byte[] var0, int var1, int var2)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] var0)
           
 void readFully(byte[] var0, int var1, int var2)
           
 int readInt()
           
 String readLine()
           
 long readLong()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 String readUTF()
           
 void seek(long var0)
           
 void setLength(long var0)
           
 int skipBytes(int var0)
           
 void write(byte[] var0)
           
 void write(byte[] var0, int var1, int var2)
           
 void write(int var0)
           
 void writeBoolean(boolean var0)
           
 void writeByte(int var0)
           
 void writeBytes(String var0)
           
 void writeChar(int var0)
           
 void writeChars(String var0)
           
 void writeDouble(double var0)
           
 void writeFloat(float var0)
           
 void writeInt(int var0)
           
 void writeLong(long var0)
           
 void writeShort(int var0)
           
 void writeUTF(String var0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessFile

public RandomAccessFile(File var0,
                        String var1)
                 throws FileNotFoundException
Throws:
FileNotFoundException

RandomAccessFile

public RandomAccessFile(String var0,
                        String var1)
                 throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

getFD

public final FileDescriptor getFD()
                           throws IOException
Throws:
IOException

getFilePointer

public long getFilePointer()
                    throws IOException
Throws:
IOException

length

public long length()
            throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] var0)
         throws IOException
Throws:
IOException

read

public int read(byte[] var0,
                int var1,
                int var2)
         throws IOException
Throws:
IOException

readBoolean

public final boolean readBoolean()
                          throws IOException
Specified by:
readBoolean in interface DataInput
Throws:
IOException

readByte

public final byte readByte()
                    throws IOException
Specified by:
readByte in interface DataInput
Throws:
IOException

readChar

public final char readChar()
                    throws IOException
Specified by:
readChar in interface DataInput
Throws:
IOException

readDouble

public final double readDouble()
                        throws IOException
Specified by:
readDouble in interface DataInput
Throws:
IOException

readFloat

public final float readFloat()
                      throws IOException
Specified by:
readFloat in interface DataInput
Throws:
IOException

readFully

public final void readFully(byte[] var0)
                     throws IOException
Specified by:
readFully in interface DataInput
Throws:
IOException

readFully

public final void readFully(byte[] var0,
                            int var1,
                            int var2)
                     throws IOException
Specified by:
readFully in interface DataInput
Throws:
IOException

readInt

public final int readInt()
                  throws IOException
Specified by:
readInt in interface DataInput
Throws:
IOException

readLine

public final String readLine()
                      throws IOException
Specified by:
readLine in interface DataInput
Throws:
IOException

readLong

public final long readLong()
                    throws IOException
Specified by:
readLong in interface DataInput
Throws:
IOException

readShort

public final short readShort()
                      throws IOException
Specified by:
readShort in interface DataInput
Throws:
IOException

readUnsignedByte

public final int readUnsignedByte()
                           throws IOException
Specified by:
readUnsignedByte in interface DataInput
Throws:
IOException

readUnsignedShort

public final int readUnsignedShort()
                            throws IOException
Specified by:
readUnsignedShort in interface DataInput
Throws:
IOException

readUTF

public final String readUTF()
                     throws IOException
Specified by:
readUTF in interface DataInput
Throws:
IOException

seek

public void seek(long var0)
          throws IOException
Throws:
IOException

setLength

public void setLength(long var0)
               throws IOException
Throws:
IOException

skipBytes

public int skipBytes(int var0)
              throws IOException
Specified by:
skipBytes in interface DataInput
Throws:
IOException

write

public void write(byte[] var0)
           throws IOException
Specified by:
write in interface DataOutput
Throws:
IOException

write

public void write(byte[] var0,
                  int var1,
                  int var2)
           throws IOException
Specified by:
write in interface DataOutput
Throws:
IOException

write

public void write(int var0)
           throws IOException
Specified by:
write in interface DataOutput
Throws:
IOException

writeBoolean

public final void writeBoolean(boolean var0)
                        throws IOException
Specified by:
writeBoolean in interface DataOutput
Throws:
IOException

writeByte

public final void writeByte(int var0)
                     throws IOException
Specified by:
writeByte in interface DataOutput
Throws:
IOException

writeBytes

public final void writeBytes(String var0)
                      throws IOException
Specified by:
writeBytes in interface DataOutput
Throws:
IOException

writeChar

public final void writeChar(int var0)
                     throws IOException
Specified by:
writeChar in interface DataOutput
Throws:
IOException

writeChars

public final void writeChars(String var0)
                      throws IOException
Specified by:
writeChars in interface DataOutput
Throws:
IOException

writeDouble

public final void writeDouble(double var0)
                       throws IOException
Specified by:
writeDouble in interface DataOutput
Throws:
IOException

writeFloat

public final void writeFloat(float var0)
                      throws IOException
Specified by:
writeFloat in interface DataOutput
Throws:
IOException

writeInt

public final void writeInt(int var0)
                    throws IOException
Specified by:
writeInt in interface DataOutput
Throws:
IOException

writeLong

public final void writeLong(long var0)
                     throws IOException
Specified by:
writeLong in interface DataOutput
Throws:
IOException

writeShort

public final void writeShort(int var0)
                      throws IOException
Specified by:
writeShort in interface DataOutput
Throws:
IOException

writeUTF

public final void writeUTF(String var0)
                    throws IOException
Specified by:
writeUTF in interface DataOutput
Throws:
IOException


Copyright © 2006-2010 OSGi Alliance. All Rights Reserved.