Class Streams
java.lang.Object
org.codehaus.plexus.archiver.util.Streams
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedInputStreamstatic BufferedOutputStreamstatic byte[]static voidcopyFully(InputStream zIn, OutputStream out, String gzip) static voidcopyFullyDontCloseOutput(InputStream zIn, OutputStream out, String gzip) static InputStreamfileInputStream(File file) static InputStreamfileInputStream(File file, String operation) static OutputStreamfileOutputStream(File file) static OutputStreamfileOutputStream(File file, String operation) static OutputStreamfileOutputStream(Path file)
-
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:
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
-