com.sssw.srv.mail
Class AgoStreamer
java.lang.Object
|
+--com.sssw.srv.mail.AgoStreamer
- public class AgoStreamer
- extends Object
Class that contains several static helper methods for streaming
data between a source and a destination.
For example, there’s a method in here for streaming characters
from a Java Reader to a Java Writer.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AgoStreamer
public AgoStreamer()
streamFromTo
public static void streamFromTo(InputStream in,
OutputStream out)
throws IOException
- A helper method that streams bytes from one stream to another.
- Parameters:
in - the stream to copy fromout - the stream to copy to- Example:
mStream.streamFromTo(someInputStream,someOutputStream);
streamFromTo
public static void streamFromTo(Reader reader,
Writer writer)
throws IOException
- A helper method that streams bytes from one stream to another.
- Parameters:
reader - the Reader to copy fromwriter - the Writer to copy to- Example:
mStream.streamFromTo(someReader,someWriter);
streamFromTo
public static void streamFromTo(String string,
OutputStream outputstream)
throws IOException
- A helper method that streams bytes from a String to a named OutputStream.
- Parameters:
string - the String used as inputoutputstream - the OutputStream- Example:
mStream.streamFromTo(someString,someOutputStream);