com.jeffpalm.basic.bytecode.base
Class FileCodeStream

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.FileCodeStream
All Implemented Interfaces:
ICodeStream

public final class FileCodeStream
extends java.lang.Object


Constructor Summary
FileCodeStream(java.io.File file)
           
FileCodeStream(java.lang.String fileName)
           
 
Method Summary
 void close()
           
 void flush()
           
 void setDebug(boolean debug)
           
 void write(byte[] bs)
           
 void write(byte[] bs, java.lang.String msg)
           
 void write(Iu1 u)
           
 void write(Iu1[] u)
           
 void write(Iu1[] u, java.lang.String msg)
           
 void write(Iu1 u, java.lang.String msg)
           
 void write(Iu2 u)
           
 void write(Iu2 u, java.lang.String msg)
           
 void write(Iu4 u)
           
 void write(Iu4 u, java.lang.String msg)
           
 void writeU1(byte val)
           
 void writeU1(byte val, java.lang.String msg)
           
 void writeU2(short val)
           
 void writeU2(short val, java.lang.String msg)
           
 void writeU4(int val)
           
 void writeU4(int val, java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCodeStream

public FileCodeStream(java.lang.String fileName)
               throws java.io.IOException
Throws:
java.io.IOException

FileCodeStream

public FileCodeStream(java.io.File file)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public final void write(Iu1 u)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu1 u,
                        java.lang.String msg)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu1[] u)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu1[] u,
                        java.lang.String msg)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu2 u)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu2 u,
                        java.lang.String msg)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu4 u)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(Iu4 u,
                        java.lang.String msg)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

writeU1

public final void writeU1(byte val)
                   throws java.io.IOException
Specified by:
writeU1 in interface ICodeStream
Throws:
java.io.IOException

writeU1

public final void writeU1(byte val,
                          java.lang.String msg)
                   throws java.io.IOException
Specified by:
writeU1 in interface ICodeStream
Throws:
java.io.IOException

writeU2

public final void writeU2(short val)
                   throws java.io.IOException
Specified by:
writeU2 in interface ICodeStream
Throws:
java.io.IOException

writeU2

public final void writeU2(short val,
                          java.lang.String msg)
                   throws java.io.IOException
Specified by:
writeU2 in interface ICodeStream
Throws:
java.io.IOException

writeU4

public final void writeU4(int val)
                   throws java.io.IOException
Specified by:
writeU4 in interface ICodeStream
Throws:
java.io.IOException

writeU4

public final void writeU4(int val,
                          java.lang.String msg)
                   throws java.io.IOException
Specified by:
writeU4 in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(byte[] bs)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

write

public final void write(byte[] bs,
                        java.lang.String msg)
                 throws java.io.IOException
Specified by:
write in interface ICodeStream
Throws:
java.io.IOException

flush

public final void flush()
                 throws java.io.IOException
Specified by:
flush in interface ICodeStream
Throws:
java.io.IOException

close

public final void close()
                 throws java.io.IOException
Specified by:
close in interface ICodeStream
Throws:
java.io.IOException

setDebug

public final void setDebug(boolean debug)
Specified by:
setDebug in interface ICodeStream