Class Streams
java.lang.Object
org.codehaus.plexus.archiver.util.Streams
-
Constructor Summary
Constructors -
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 FileInputStream
fileInputStream
(File file) static FileInputStream
fileInputStream
(File file, String operation) static FileOutputStream
fileOutputStream
(File file) static FileOutputStream
fileOutputStream
(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
-