Package org.apache.ziplock
Class IO
java.lang.Object
org.apache.ziplock.IO
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidcopy(File from, OutputStream to) static voidcopy(InputStream from, File to) static voidcopy(InputStream from, File to, boolean append) static voidcopy(InputStream from, OutputStream to) static voidcopy(URL from, OutputStream to) static booleanstatic InputStreamstatic InputStreamstatic byte[]static byte[]readBytes(InputStream in) static byte[]static StringreadString(File file) static StringreadString(URL url) static Stringstatic Stringslurp(InputStream in) static Stringstatic Stringstatic ZipInputStreamstatic OutputStreamstatic OutputStreamstatic voidwriteString(File file, String string) static ZipOutputStream
-
Constructor Details
-
IO
public IO()
-
-
Method Details
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
slurp
- Throws:
IOException
-
slurp
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
slurp
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
slurp
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
writeString
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
zip
- Throws:
IOException
-
unzip
- Throws:
IOException
-
close
- Throws:
IOException
-
delete
-
write
- Throws:
FileNotFoundException
-
write
- Throws:
FileNotFoundException
-
read
- Throws:
FileNotFoundException
-
read
- Throws:
IOException
-