public class Streams extends Object
Modifier and Type | Field and Description |
---|---|
static InputStream |
EMPTY_INPUTSTREAM |
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 InputStream |
fileInputStream(File file) |
static InputStream |
fileInputStream(File file,
String operation) |
static OutputStream |
fileOutputStream(File file) |
static OutputStream |
fileOutputStream(File file,
String operation) |
public static final InputStream EMPTY_INPUTSTREAM
public static BufferedInputStream bufferedInputStream(InputStream is)
public static BufferedOutputStream bufferedOutputStream(OutputStream os)
public static byte[] cacheBuffer()
public static InputStream fileInputStream(File file) throws IOException
IOException
public static InputStream fileInputStream(File file, String operation) throws ArchiverException
ArchiverException
public static OutputStream fileOutputStream(File file) throws IOException
IOException
public static OutputStream 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–2023 Codehaus Plexus. All rights reserved.