Forge - Shell API 1.2.0.Final

org.jboss.forge.shell.util
Class Streams

java.lang.Object
  extended by org.jboss.forge.shell.util.Streams

public abstract class Streams
extends Object

Stream utilities.

Author:
Lincoln Baxter, III

Constructor Summary
Streams()
           
 
Method Summary
static void closeQuietly(Closeable source)
           
static InputStream fromString(String data)
           
static String toString(InputStream stream)
          Return a String containing the contents of the given InputStream
static void write(InputStream source, OutputStream destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Streams

public Streams()
Method Detail

toString

public static String toString(InputStream stream)
Return a String containing the contents of the given InputStream


write

public static void write(InputStream source,
                         OutputStream destination)

fromString

public static InputStream fromString(String data)

closeQuietly

public static void closeQuietly(Closeable source)

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.