public final class IOUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertToBytes(DataHandler dh) |
static void |
copyReader(OutputStream outs,
Reader reader)
Copy the reader to the output stream
|
static void |
copyStream(OutputStream outs,
InputStream ins)
Copy the input stream to the output stream
|
static File |
createTempDirectory() |
static Writer |
getCharsetFileWriter(File file,
String charset) |
static String |
readAndCloseStream(InputStream is) |
static String |
readAndCloseStream(InputStream is,
String charsetName) |
public static Writer getCharsetFileWriter(File file, String charset) throws IOException
IOException
public static String readAndCloseStream(InputStream is) throws IOException
IOException
public static String readAndCloseStream(InputStream is, String charsetName) throws IOException
IOException
public static void copyStream(OutputStream outs, InputStream ins) throws IOException
IOException
public static void copyReader(OutputStream outs, Reader reader) throws IOException
IOException
public static byte[] convertToBytes(DataHandler dh)
public static File createTempDirectory() throws IOException
IOException
Copyright © 2018 JBoss, by Red Hat. All rights reserved.