ice.debug
Class FileDump

java.lang.Object
  extended byice.debug.FileDump

public class FileDump
extends Object

This class contains facilities for dumping contents of streams to a file.


Constructor Summary
FileDump(String fileNameIn)
           
 
Method Summary
 void close()
           
static IOException dumpStream(byte[] data, int dataOffset, int dataLength, InputStream is, String fileName)
           
static IOException dumpStream(InputStream is, String fileName)
           
 void write(byte[] buffer, int index, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDump

public FileDump(String fileNameIn)
         throws IOException
Method Detail

dumpStream

public static IOException dumpStream(InputStream is,
                                     String fileName)

dumpStream

public static IOException dumpStream(byte[] data,
                                     int dataOffset,
                                     int dataLength,
                                     InputStream is,
                                     String fileName)

write

public void write(byte[] buffer,
                  int index,
                  int length)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException