Class LEFileReader


  • public class LEFileReader
    extends java.lang.Object
    Created by IntelliJ IDEA. User: bennett Date: Dec 6, 2005 Time: 5:03:56 PM To change this template use Options | File Templates.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) char[] cbuf
      The cbuf.
      private java.io.BufferedInputStream in
      The in.
      (package private) int offset
      The offset.
      (package private) java.lang.String readFilename
      The read filename.
    • Constructor Summary

      Constructors 
      Constructor Description
      LEFileReader​(java.lang.String filename)
      Instantiates a new lE file reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int readByte()
      Read byte.
      float readFloat()
      Read float.
      int readInt()
      Read int.
      short readShort()
      Read short.
      void seek​(int newOffset)
      Seek.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • readFilename

        java.lang.String readFilename
        The read filename.
      • in

        private java.io.BufferedInputStream in
        The in.
      • cbuf

        char[] cbuf
        The cbuf.
      • offset

        int offset
        The offset.
    • Constructor Detail

      • LEFileReader

        public LEFileReader​(java.lang.String filename)
                     throws java.io.FileNotFoundException
        Instantiates a new lE file reader.
        Parameters:
        filename - the filename
        Throws:
        java.io.FileNotFoundException - the file not found exception
    • Method Detail

      • readInt

        public int readInt()
                    throws java.io.IOException
        Read int.
        Returns:
        the int
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • readShort

        public short readShort()
                        throws java.io.IOException
        Read short.
        Returns:
        the short
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Read float.
        Returns:
        the float
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • readByte

        public int readByte()
                     throws java.io.IOException
        Read byte.
        Returns:
        the int
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • seek

        public void seek​(int newOffset)
                  throws java.io.IOException
        Seek.
        Parameters:
        newOffset - the new offset
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.