Class LEFileWriter


  • public class LEFileWriter
    extends java.lang.Object
    The Class LEFileWriter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int offset
      The offset.
      private java.io.DataOutputStream out
      The out.
      private byte[] temp
      The temp.
      (package private) java.lang.String wfilename
      The wfilename.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close.
      void seek​(int newOffset)
      Seek.
      void writeByte​(int i)
      Write byte.
      void writeBytes​(java.lang.String s)
      Write bytes.
      void writeChar​(int c)
      Write char.
      void writeFloat​(float v)
      Write float.
      void writeInt​(int v)
      Write int.
      • Methods inherited from class java.lang.Object

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

      • wfilename

        java.lang.String wfilename
        The wfilename.
      • out

        private java.io.DataOutputStream out
        The out.
      • temp

        private byte[] temp
        The temp.
      • offset

        int offset
        The offset.
    • Constructor Detail

      • LEFileWriter

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

      • writeByte

        public void writeByte​(int i)
                       throws java.io.IOException
        Write byte.
        Parameters:
        i - the i
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • writeBytes

        public void writeBytes​(java.lang.String s)
                        throws java.io.IOException
        Write bytes.
        Parameters:
        s - the s
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • writeChar

        public void writeChar​(int c)
                       throws java.io.IOException
        Write char.
        Parameters:
        c - the c
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • close

        public void close()
                   throws java.io.IOException
        Close.
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • writeInt

        public void writeInt​(int v)
                      throws java.io.IOException
        Write int.
        Parameters:
        v - the v
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • writeFloat

        public void writeFloat​(float v)
                        throws java.io.IOException
        Write float.
        Parameters:
        v - the v
        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.