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(InputStream in,
OutputStream out)
copy le flux d'entree dans le lux de sortie
|
static void |
copy(InputStream in,
OutputStream out,
int bufferSize)
copy le flux d'entree dans le lux de sortie
|
static void |
copy(net.thevpc.nuts.NutsPath in,
OutputStream out)
copy le flux d'entree dans le lux de sortie
|
static void |
copy(net.thevpc.nuts.NutsPath in,
OutputStream out,
int bufferSize)
copy stream
|
static String |
getAbsoluteFile2(String path,
String cwd,
net.thevpc.nuts.NutsSession session) |
static byte[] |
loadByteArray(InputStream r) |
static byte[] |
loadByteArray(URL url) |
static String |
loadString(InputStream r) |
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) 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(net.thevpc.nuts.NutsPath in,
OutputStream out)
throws IOException
in - entreeout - sortieIOException - when IO errorpublic static void copy(net.thevpc.nuts.NutsPath in,
OutputStream out,
int bufferSize)
throws IOException
in - inputout - outputbufferSize - bufferSizeIOException - when IO errorCopyright © 2022 vpc open source initiative. All rights reserved.