Class _IOUtils
java.lang.Object
net.thevpc.nserver.bundled._IOUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(File in, OutputStream out) copy le flux d'entree dans le lux de sortiestatic voidcopy(File in, OutputStream out, int bufferSize) copy streamstatic voidcopy(InputStream in, OutputStream out) copy le flux d'entree dans le lux de sortiestatic longcopy(InputStream from, OutputStream to, boolean closeInput, boolean closeOutput) static voidcopy(InputStream in, OutputStream out, int bufferSize) copy le flux d'entree dans le lux de sortiestatic StringgetAbsoluteFile2(String path, String cwd) static byte[]loadByteArray(File stream) static byte[]static byte[]loadByteArray(URL url) static Stringstatic StringloadString(InputStream r, boolean close) static StringloadString(URL url)
-
Field Details
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
_IOUtils
public _IOUtils()
-
-
Method Details
-
loadString
- Throws:
IOException
-
loadString
- Throws:
IOException
-
loadString
- Throws:
IOException
-
loadByteArray
- Throws:
IOException
-
loadByteArray
- Throws:
IOException
-
loadByteArray
- Throws:
IOException
-
copy
copy le flux d'entree dans le lux de sortie- Parameters:
in- entreeout- sortie- Throws:
IOException- when IO error
-
copy
copy le flux d'entree dans le lux de sortie- Parameters:
in- inputout- outputbufferSize- bufferSize- Throws:
IOException- when IO error
-
copy
copy le flux d'entree dans le lux de sortie- Parameters:
in- entreeout- sortie- Throws:
IOException- when IO error
-
copy
copy stream- Parameters:
in- inputout- outputbufferSize- bufferSize- Throws:
IOException- when IO error
-
getAbsoluteFile2
-
copy
public static long copy(InputStream from, OutputStream to, boolean closeInput, boolean closeOutput) throws IOException - Throws:
IOException
-