ice.util.io
Class IOKit

java.lang.Object
  extended byice.util.io.IOKit

public class IOKit
extends Object

Utilities for IO support


Constructor Summary
IOKit()
           
 
Method Summary
static byte[] readAll(InputStream is)
          Alias for readAll(is, DEFAULT_BUFFER_SIZE)
static byte[] readAll(InputStream is, int initialBufferSize)
          Read input stream data until eof into byte array
static char[] readAll(Reader r, int initialBufferSize)
          Read reader data until eof into char array
static String readAllStr(Reader r, int initialBufferSize)
          Read reader data until eof into String instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOKit

public IOKit()
Method Detail

readAll

public static byte[] readAll(InputStream is)
                      throws IOException
Alias for readAll(is, DEFAULT_BUFFER_SIZE)

Throws:
IOException

readAll

public static byte[] readAll(InputStream is,
                             int initialBufferSize)
                      throws IOException
Read input stream data until eof into byte array

Parameters:
is - stream to read
initialBufferSize - size of initial buffer
Throws:
IOException

readAll

public static char[] readAll(Reader r,
                             int initialBufferSize)
                      throws IOException
Read reader data until eof into char array

Parameters:
r - reader to read
initialBufferSize - size of initial buffer
Throws:
IOException

readAllStr

public static String readAllStr(Reader r,
                                int initialBufferSize)
                         throws IOException
Read reader data until eof into String instance

Parameters:
r - reader to read
initialBufferSize - size of initial buffer
Throws:
IOException