org.cip4.jdflib.util
Class StreamUtil

java.lang.Object
  extended by org.cip4.jdflib.util.StreamUtil

public class StreamUtil
extends Object

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG August 10, 2009

Constructor Summary
StreamUtil()
           
 
Method Summary
static InputStream getBufferedInputStream(InputStream is)
          return a reasonably well performing stream for is
static OutputStream getBufferedOutputStream(OutputStream os)
          return a reasonably well performing stream for os
static VString getLines(InputStream in)
          read and tokenize a stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtil

public StreamUtil()
Method Detail

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.