|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.streams.StreamConnector
public class StreamConnector
This class offers methods to connect to streams to each other.
| Nested Class Summary | |
|---|---|
static class |
StreamConnector.TransferResult
|
| Constructor Summary | |
|---|---|
StreamConnector()
|
|
| Method Summary | |
|---|---|
static void |
connect(InputStream inputStream,
OutputStream outputStream)
Connects a given InputStream to a given OutputStream without closing the streams but flushing the
OutputStream. |
static void |
connect(InputStream source,
StringBuffer destination,
String encoding)
Transfers the data of an InputStream into a StringBuffer using the given encoding. |
static void |
connect(StringBuffer source,
OutputStream destination,
String encoding)
Transfers the data of a StringBuffer into an OutputStream. |
static StreamConnector.TransferResult |
transfer(InputStream inputStream,
OutputStream outputStream)
Transfers the data from the given InputStream to the given OutputStream returning a StreamConnector.TransferResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamConnector()
| Method Detail |
|---|
public static void connect(InputStream inputStream,
OutputStream outputStream)
throws IOException
InputStream to a given OutputStream without closing the streams but flushing the
OutputStream.
inputStream - outputStream -
IOException
public static StreamConnector.TransferResult transfer(InputStream inputStream,
OutputStream outputStream)
InputStream to the given OutputStream returning a StreamConnector.TransferResult
inputStream - outputStream -
StreamConnector.TransferResult
public static void connect(InputStream source,
StringBuffer destination,
String encoding)
throws IOException
source - destination - encoding - - example: "utf-8"
IOExceptionCharset
public static void connect(StringBuffer source,
OutputStream destination,
String encoding)
throws IOException
source - destination - encoding - , like "utf-8"
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||