public class StreamUtil extends Object
Constructor and Description |
---|
StreamUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
close(InputStream ios)
exception catching null safe close
|
static void |
close(OutputStream ios)
exception catching null safe close
|
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 by cr/lf
|
static byte[] |
getMD5(InputStream is)
calculate the md5 hash
|
static void |
reset(InputStream stream) |
public static InputStream getBufferedInputStream(InputStream is)
is
- public static OutputStream getBufferedOutputStream(OutputStream os)
os
- public static VString getLines(InputStream in)
in
- the input stream to readpublic static byte[] getMD5(InputStream is)
is
- public static void close(OutputStream ios)
ios
- public static void reset(InputStream stream)
stream
- public static void close(InputStream ios)
ios
- Copyright © 2018. All rights reserved.