public class _IOUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| Constructor and Description |
|---|
_IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(File in,
OutputStream out)
copy le flux d'entree dans le lux de sortie
|
static void |
copy(File in,
OutputStream out,
int bufferSize)
copy stream
|
static void |
copy(InputStream in,
OutputStream out)
copy le flux d'entree dans le lux de sortie
|
static long |
copy(InputStream from,
OutputStream to,
boolean closeInput,
boolean closeOutput) |
static void |
copy(InputStream in,
OutputStream out,
int bufferSize)
copy le flux d'entree dans le lux de sortie
|
static String |
getAbsoluteFile2(String path,
String cwd) |
static byte[] |
loadByteArray(File stream) |
static byte[] |
loadByteArray(InputStream r) |
static byte[] |
loadByteArray(URL url) |
static String |
loadString(InputStream r) |
static String |
loadString(InputStream r,
boolean close) |
static String |
loadString(URL url) |
public static final int DEFAULT_BUFFER_SIZE
public static String loadString(URL url) throws IOException
IOExceptionpublic static String loadString(InputStream r, boolean close) throws IOException
IOExceptionpublic static String loadString(InputStream r) throws IOException
IOExceptionpublic static byte[] loadByteArray(File stream) throws IOException
IOExceptionpublic static byte[] loadByteArray(URL url) throws IOException
IOExceptionpublic static byte[] loadByteArray(InputStream r) throws IOException
IOExceptionpublic static void copy(InputStream in, OutputStream out) throws IOException
in - entreeout - sortieIOException - when IO errorpublic static void copy(InputStream in, OutputStream out, int bufferSize) throws IOException
in - inputout - outputbufferSize - bufferSizeIOException - when IO errorpublic static void copy(File in, OutputStream out) throws IOException
in - entreeout - sortieIOException - when IO errorpublic static void copy(File in, OutputStream out, int bufferSize) throws IOException
in - inputout - outputbufferSize - bufferSizeIOException - when IO errorpublic static long copy(InputStream from, OutputStream to, boolean closeInput, boolean closeOutput) throws IOException
IOExceptionCopyright © 2022 vpc open source initiative. All rights reserved.