Class Streams
java.lang.Object
org.codehaus.plexus.archiver.util.Streams
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedInputStream
static BufferedOutputStream
static byte[]
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)
-
Field Details
-
EMPTY_INPUTSTREAM
-
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
bufferedInputStream
-
bufferedOutputStream
-
cacheBuffer
public static byte[] cacheBuffer() -
fileInputStream
- Throws:
IOException
-
fileInputStream
- Throws:
ArchiverException
-
fileOutputStream
- Throws:
IOException
-
fileOutputStream
- Throws:
ArchiverException
-
copyFully
public static void copyFully(@WillClose InputStream zIn, @WillClose OutputStream out, String gzip) throws ArchiverException - Throws:
ArchiverException
-
copyFullyDontCloseOutput
public static void copyFullyDontCloseOutput(@WillClose InputStream zIn, @WillNotClose OutputStream out, String gzip) throws ArchiverException - Throws:
ArchiverException
-