org.paneris.util
Class IoUtils

java.lang.Object
  extended by org.paneris.util.IoUtils

public class IoUtils
extends java.lang.Object


Constructor Summary
IoUtils()
           
 
Method Summary
static void copy(java.io.InputStream i, int buf, java.io.OutputStream o)
           
static byte[] slurp(java.io.InputStream i, int estimate)
           
static byte[] slurp(java.io.InputStream i, int estimate, int limit)
           
static byte[] slurpOutputOf_bytes(java.lang.String[] command, int estimate, int limit)
          FIXME warn about potential inefficiency
static java.lang.String slurpOutputOf(java.lang.String[] command, int estimate, int limit)
          FIXME warn about potential inefficiency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtils

public IoUtils()
Method Detail

slurp

public static byte[] slurp(java.io.InputStream i,
                           int estimate,
                           int limit)
                    throws java.io.IOException
Throws:
java.io.IOException

slurp

public static byte[] slurp(java.io.InputStream i,
                           int estimate)
                    throws java.io.IOException
Throws:
java.io.IOException

slurpOutputOf_bytes

public static byte[] slurpOutputOf_bytes(java.lang.String[] command,
                                         int estimate,
                                         int limit)
                                  throws java.io.IOException
FIXME warn about potential inefficiency

Throws:
java.io.IOException

slurpOutputOf

public static java.lang.String slurpOutputOf(java.lang.String[] command,
                                             int estimate,
                                             int limit)
                                      throws java.io.IOException
FIXME warn about potential inefficiency

Throws:
java.io.IOException

copy

public static void copy(java.io.InputStream i,
                        int buf,
                        java.io.OutputStream o)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2008 PanEris. All Rights Reserved.