public class IOSystem extends Object
Constructor and Description |
---|
IOSystem() |
Modifier and Type | Method and Description |
---|---|
void |
close(Closeable closeable) |
void |
copy(byte[] from,
File to) |
void |
copy(InputStream from,
File to) |
InputStream |
read(File source) |
byte[] |
read(InputStream in) |
String |
slurp(File file) |
String |
slurp(URL url) |
ZipInputStream |
unzip(File file) |
OutputStream |
write(File destination) |
void |
writeString(File file,
String string) |
public String slurp(File file) throws IOException
IOException
public String slurp(URL url) throws IOException
IOException
public void writeString(File file, String string) throws IOException
IOException
public void copy(InputStream from, File to) throws IOException
IOException
public void copy(byte[] from, File to) throws IOException
IOException
public ZipInputStream unzip(File file) throws IOException
IOException
public void close(Closeable closeable) throws IOException
IOException
public OutputStream write(File destination) throws FileNotFoundException
FileNotFoundException
public InputStream read(File source) throws FileNotFoundException
FileNotFoundException
public byte[] read(InputStream in) throws IOException
IOException
Copyright © 2022 Apache Software Foundation. All rights reserved.