org.cip4.jdflib.util
Class StreamUtil
java.lang.Object
org.cip4.jdflib.util.StreamUtil
public class StreamUtil
- extends Object
- Author:
- Dr. Rainer Prosi, Heidelberger Druckmaschinen AG
August 10, 2009
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUtil
public StreamUtil()
getBufferedInputStream
public static InputStream getBufferedInputStream(InputStream is)
- return a reasonably well performing stream for is
- Parameters:
is -
- Returns:
- the buffered stream
getBufferedOutputStream
public static OutputStream getBufferedOutputStream(OutputStream os)
- return a reasonably well performing stream for os
- Parameters:
os -
- Returns:
- the buffered stream
getLines
public static VString getLines(InputStream in)
- read and tokenize a stream
- Parameters:
in - the input stream to read
- Returns:
- a vector of strings, one for each line
Copyright © 2013. All Rights Reserved.