public class Streams extends Object
Constructor and Description |
---|
Streams() |
Modifier and Type | Method and Description |
---|---|
static BufferedInputStream |
bufferedInputStream(InputStream is) |
static BufferedOutputStream |
bufferedOutputStream(OutputStream os) |
static byte[] |
cacheBuffer() |
static void |
copyFully(InputStream zIn,
OutputStream out,
String gzip) |
static void |
copyFullyDontCloseOutput(InputStream zIn,
OutputStream out,
String gzip) |
static FileInputStream |
fileInputStream(File file) |
static FileInputStream |
fileInputStream(File file,
String operation) |
static FileOutputStream |
fileOutputStream(File file) |
static FileOutputStream |
fileOutputStream(File file,
String operation) |
public static BufferedInputStream bufferedInputStream(InputStream is)
public static BufferedOutputStream bufferedOutputStream(OutputStream os)
public static byte[] cacheBuffer()
public static FileInputStream fileInputStream(File file) throws FileNotFoundException
FileNotFoundException
public static FileInputStream fileInputStream(File file, String operation) throws ArchiverException
ArchiverException
public static FileOutputStream fileOutputStream(File file) throws FileNotFoundException
FileNotFoundException
public static FileOutputStream fileOutputStream(File file, String operation) throws ArchiverException
ArchiverException
public static void copyFully(@WillClose InputStream zIn, @WillClose OutputStream out, String gzip) throws ArchiverException
ArchiverException
public static void copyFullyDontCloseOutput(@WillClose InputStream zIn, @WillNotClose OutputStream out, String gzip) throws ArchiverException
ArchiverException
Copyright © 2001-2015 Codehaus. All Rights Reserved.