Forge - Parent 1.0.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 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)

Forge - Parent 1.0.0.Final

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.