Class Streams
java.lang.Object
org.codehaus.plexus.archiver.util.Streams
-
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 FileInputStreamfileInputStream(File file) static FileInputStreamfileInputStream(File file, String operation) static FileOutputStreamfileOutputStream(File file) static FileOutputStreamfileOutputStream(File file, String operation)
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
bufferedInputStream
-
bufferedOutputStream
-
cacheBuffer
public static byte[] cacheBuffer() -
fileInputStream
- Throws:
FileNotFoundException
-
fileInputStream
- Throws:
ArchiverException
-
fileOutputStream
- Throws:
FileNotFoundException
-
fileOutputStream
public static FileOutputStream fileOutputStream(File file, String operation) throws ArchiverException - 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
-