Documentation of 'jhplot.math.io.LERandomAccessFile' Java class.
LERandomAccessFile
jhplot.math.io

Class LERandomAccessFile

  • All Implemented Interfaces:
    java.io.DataInput, java.io.DataOutput


    public class LERandomAccessFile
    extends java.lang.Object
    implements java.io.DataInput, java.io.DataOutput
    This class was designed on the base of Roedy Green LEDataInputStream Thanks to Roedy Green, Canadian Mind Products mailto:roedy@mindprod.com http://mindprod.com
    • Constructor Summary

      Constructors 
      Constructor and Description
      LERandomAccessFile(java.io.File f, java.lang.String rw) 
      LERandomAccessFile(java.lang.String f, java.lang.String rw)
      constructors
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      java.io.FileDescriptor getFD() 
      long getFilePointer() 
      long length() 
      int read() 
      int read(byte[] b) 
      int read(byte[] b, int off, int len) 
      boolean readBoolean() 
      byte readByte() 
      char readChar()
      like RandomAcessFile.readChar except little endian.
      double readDouble()
      like RandomAcessFile.readDouble except little endian.
      float readFloat()
      like RandomAcessFile.readFloat except little endian.
      void readFully(byte[] b) 
      void readFully(byte[] b, int off, int len) 
      int readInt()
      like RandomAcessFile.readInt except little endian.
      java.lang.String readLine() 
      long readLong()
      like RandomAcessFile.readLong except little endian.
      short readShort()
      like RandomAcessFile.readShort except little endian.
      int readUnsignedByte() 
      int readUnsignedShort()
      like RandomAcessFile.readUnsignedShort except little endian.
      java.lang.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(java.lang.String s) 
      void writeChar(int v)
      like RandomAcessFile.writeChar.
      void writeChars(java.lang.String s)
      like RandomAcessFile.writeChars, has to flip each char.
      void writeDouble(double v)
      like RandomAcessFile.writeDouble.
      void writeFloat(float v)
      like RandomAcessFile.writeFloat.
      void writeInt(int v)
      like RandomAcessFile.writeInt.
      void writeLong(long v)
      like RandomAcessFile.writeLong.
      void writeShort(int v)
      like RandomAcessFile.writeShort.
      void writeUTF(java.lang.String str) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LERandomAccessFile

        public LERandomAccessFile(java.lang.String f,
                                  java.lang.String rw)
                           throws java.io.IOException
        constructors
        Throws:
        java.io.IOException
      • LERandomAccessFile

        public LERandomAccessFile(java.io.File f,
                                  java.lang.String rw)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readShort

        public final short readShort()
                              throws java.io.IOException
        like RandomAcessFile.readShort except little endian.
        Specified by:
        readShort in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readUnsignedShort

        public final int readUnsignedShort()
                                    throws java.io.IOException
        like RandomAcessFile.readUnsignedShort except little endian. Note, returns int even though it reads a short.
        Specified by:
        readUnsignedShort in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readChar

        public final char readChar()
                            throws java.io.IOException
        like RandomAcessFile.readChar except little endian.
        Specified by:
        readChar in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readInt

        public final int readInt()
                          throws java.io.IOException
        like RandomAcessFile.readInt except little endian.
        Specified by:
        readInt in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readLong

        public final long readLong()
                            throws java.io.IOException
        like RandomAcessFile.readLong except little endian.
        Specified by:
        readLong in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readFloat

        public final float readFloat()
                              throws java.io.IOException
        like RandomAcessFile.readFloat except little endian.
        Specified by:
        readFloat in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readDouble

        public final double readDouble()
                                throws java.io.IOException
        like RandomAcessFile.readDouble except little endian.
        Specified by:
        readDouble in interface java.io.DataInput
        Throws:
        java.io.IOException
      • writeShort

        public final void writeShort(int v)
                              throws java.io.IOException
        like RandomAcessFile.writeShort. also acts as a writeUnsignedShort
        Specified by:
        writeShort in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeChar

        public final void writeChar(int v)
                             throws java.io.IOException
        like RandomAcessFile.writeChar. Note the parm is an int even though this as a writeChar
        Specified by:
        writeChar in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeInt

        public final void writeInt(int v)
                            throws java.io.IOException
        like RandomAcessFile.writeInt.
        Specified by:
        writeInt in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeLong

        public final void writeLong(long v)
                             throws java.io.IOException
        like RandomAcessFile.writeLong.
        Specified by:
        writeLong in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeFloat

        public final void writeFloat(float v)
                              throws java.io.IOException
        like RandomAcessFile.writeFloat.
        Specified by:
        writeFloat in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeDouble

        public final void writeDouble(double v)
                               throws java.io.IOException
        like RandomAcessFile.writeDouble.
        Specified by:
        writeDouble in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeChars

        public final void writeChars(java.lang.String s)
                              throws java.io.IOException
        like RandomAcessFile.writeChars, has to flip each char.
        Specified by:
        writeChars in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • getFD

        public final java.io.FileDescriptor getFD()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getFilePointer

        public final long getFilePointer()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • length

        public final long length()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public final int read(byte[] b,
                              int off,
                              int len)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public final int read(byte[] b)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public final int read()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readFully

        public final void readFully(byte[] b)
                             throws java.io.IOException
        Specified by:
        readFully in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readFully

        public final void readFully(byte[] b,
                                    int off,
                                    int len)
                             throws java.io.IOException
        Specified by:
        readFully in interface java.io.DataInput
        Throws:
        java.io.IOException
      • skipBytes

        public final int skipBytes(int n)
                            throws java.io.IOException
        Specified by:
        skipBytes in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readBoolean

        public final boolean readBoolean()
                                  throws java.io.IOException
        Specified by:
        readBoolean in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readByte

        public final byte readByte()
                            throws java.io.IOException
        Specified by:
        readByte in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readUnsignedByte

        public final int readUnsignedByte()
                                   throws java.io.IOException
        Specified by:
        readUnsignedByte in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readLine

        public final java.lang.String readLine()
                                        throws java.io.IOException
        Specified by:
        readLine in interface java.io.DataInput
        Throws:
        java.io.IOException
      • readUTF

        public final java.lang.String readUTF()
                                       throws java.io.IOException
        Specified by:
        readUTF in interface java.io.DataInput
        Throws:
        java.io.IOException
      • seek

        public final void seek(long pos)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public final void write(int b)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • write

        public final void write(byte[] b,
                                int off,
                                int len)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeBoolean

        public final void writeBoolean(boolean v)
                                throws java.io.IOException
        Specified by:
        writeBoolean in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeByte

        public final void writeByte(int v)
                             throws java.io.IOException
        Specified by:
        writeByte in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeBytes

        public final void writeBytes(java.lang.String s)
                              throws java.io.IOException
        Specified by:
        writeBytes in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeUTF

        public final void writeUTF(java.lang.String str)
                            throws java.io.IOException
        Specified by:
        writeUTF in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • write

        public final void write(byte[] b)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • close

        public final void close()
                         throws java.io.IOException
        Throws:
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG