public final class WriteFileExtensions extends Object
WriteFileExtensions provides methods for writing in files.| Constructor and Description |
|---|
WriteFileExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
write(InputStream inputStream,
OutputStream outputStream)
Writes the given input stream to the output stream.
|
static void |
writeByteArrayToFile(File file,
byte[] byteArray)
Writes the given byte array to the given file.
|
static void |
writeByteArrayToFile(String filename,
byte[] byteArray)
Writes the given byte array to a file.
|
public static void write(InputStream inputStream, OutputStream outputStream) throws FileNotFoundException, IOException
inputStream - the input streamoutputStream - the output streamFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.public static void writeByteArrayToFile(File file, byte[] byteArray) throws IOException
file - The file.byteArray - The byte array.IOException - Signals that an I/O exception has occurred.public static void writeByteArrayToFile(String filename, byte[] byteArray) throws IOException
filename - The filename from the file.byteArray - The byte array.IOException - Signals that an I/O exception has occurred.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.