public class StreamUtil extends Object
| Constructor and Description |
|---|
StreamUtil()
|
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
bufferedInputStream(File
Open a new
FileInputStream and wrap it in a
BufferedInputStream.
|
static InputStream |
bufferedInputStream(Path
Open a new
FileInputStream and wrap it in a
BufferedInputStream.
|
static InputStream |
bufferedInputStream(String
Open a new
FileInputStream and wrap it in a
BufferedInputStream.
|
static OutputStream |
bufferedOutputStream(File
Open a new
FileOutputStream and wrap it in a
BufferedOutputStream.
|
static OutputStream |
bufferedOutputStream(Path
Open a new
FileOutputStream and wrap it in a
BufferedOutputStream.
|
static OutputStream |
bufferedOutputStream(String
Open a new
FileOutputStream and wrap it in a
BufferedOutputStream.
|
public static InputStreambufferedInputStream(File file) throws FileNotFoundException
FileInputStream and wrap it in a
BufferedInputStream.
file - the file to open.
FileNotFoundException
public static InputStreambufferedInputStream(String path) throws FileNotFoundException
FileInputStream and wrap it in a
BufferedInputStream.
path - the path of the file to open.
FileNotFoundException
public static InputStreambufferedInputStream(Path path) throws IOException
FileInputStream and wrap it in a
BufferedInputStream.
path - the path of the file to open.
IOException
public static OutputStreambufferedOutputStream(File file) throws FileNotFoundException
FileOutputStream and wrap it in a
BufferedOutputStream.
file - the file to open.
FileNotFoundException
public static OutputStreambufferedOutputStream(String path) throws FileNotFoundException
FileOutputStream and wrap it in a
BufferedOutputStream.
file - the path of the file to open.
FileNotFoundException
public static OutputStreambufferedOutputStream(Path path) throws IOException
FileOutputStream and wrap it in a
BufferedOutputStream.
file - the path of the file to open.
IOException