com.jfx.io
Class InputStreamManager

java.lang.Object
  extended by com.jfx.io.InputStreamManager

public class InputStreamManager
extends java.lang.Object


Nested Class Summary
protected static class InputStreamManager.InputStreamReadableByteChannel
           
 
Constructor Summary
InputStreamManager(java.io.InputStream is)
           
InputStreamManager(int bufferSize)
           
 
Method Summary
 void close()
           
protected  void deleteFile(java.lang.String fileName)
           
 int getBufferSize()
           
 byte[] getBytes()
           
 byte[] getBytesFixLF()
           
 char[] getChars(java.lang.String encoding)
           
 java.lang.String getDescription()
           
 java.io.InputStream getInputStream()
           
 java.util.ArrayList getLines(java.lang.String encoding)
           
 java.nio.channels.ReadableByteChannel getReadableByteChannel()
           
 void gzipIt(java.lang.String toZipFileName, java.lang.String underThePath)
           
 void readASCIILines(LineListener lsnr)
           
 void readASCIILines(LineListener lsnr, int startLine, int endLine)
           
 void readBytes(BytesListener lsnr)
           
 void readBytes(BytesListener lsnr, int startOffset, int endOffset)
           
 void readCommand(CommandListener lsnr)
           
 void setDescription(java.lang.String description)
           
 void zipIt(java.lang.String toZipFileName, java.lang.String zipEntryName, java.lang.String underThePathInZip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamManager

public InputStreamManager(int bufferSize)

InputStreamManager

public InputStreamManager(java.io.InputStream is)
Method Detail

getBufferSize

public int getBufferSize()

getReadableByteChannel

public java.nio.channels.ReadableByteChannel getReadableByteChannel()
                                                             throws java.io.IOException
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

close

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

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getLines

public java.util.ArrayList getLines(java.lang.String encoding)
                             throws java.io.IOException
Throws:
java.io.IOException

getBytes

public byte[] getBytes()
                throws java.io.IOException
Throws:
java.io.IOException

getBytesFixLF

public byte[] getBytesFixLF()
                     throws java.io.IOException
Throws:
java.io.IOException

getChars

public char[] getChars(java.lang.String encoding)
                throws java.io.IOException
Throws:
java.io.IOException

readASCIILines

public void readASCIILines(LineListener lsnr)
                    throws java.io.IOException
Throws:
java.io.IOException

readASCIILines

public void readASCIILines(LineListener lsnr,
                           int startLine,
                           int endLine)
                    throws java.io.IOException
Throws:
java.io.IOException

readCommand

public void readCommand(CommandListener lsnr)
                 throws java.io.IOException
Throws:
java.io.IOException

readBytes

public void readBytes(BytesListener lsnr)
               throws java.io.IOException
Throws:
java.io.IOException

readBytes

public void readBytes(BytesListener lsnr,
                      int startOffset,
                      int endOffset)
               throws java.io.IOException
Throws:
java.io.IOException

zipIt

public void zipIt(java.lang.String toZipFileName,
                  java.lang.String zipEntryName,
                  java.lang.String underThePathInZip)
           throws java.io.IOException
Throws:
java.io.IOException

gzipIt

public void gzipIt(java.lang.String toZipFileName,
                   java.lang.String underThePath)
            throws java.io.IOException
Throws:
java.io.IOException

deleteFile

protected void deleteFile(java.lang.String fileName)


Copyright © 2008-2009 Roman Gerasimenko.