public interface StreamProvider
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Close this collection of streams.
|
static StreamProvider |
create(File f) |
static StreamProvider |
create(String path) |
default File |
getFile()
Deprecated.
|
default InputStream |
input()
Get the default stream.
|
InputStream |
input(String pattern)
Get a custom stream, specifying a pattern.
|
default OutputStream |
output()
Get a single stream.
|
OutputStream |
output(String pattern)
Get a custom stream, specifying a pattern.
|
default Reader |
reader() |
default Reader |
reader(String pattern) |
default OutputStreamWriter |
writer() |
default OutputStreamWriter |
writer(String pattern) |
static StreamProvider create(File f)
static StreamProvider create(String path)
default OutputStream output() throws IOException
IOException - if creating the stream failedOutputStream output(String pattern) throws IOException
pattern - a naming pattern for the new streamIOException - if creating the stream faileddefault InputStream input() throws IOException
IOException - if creating the stream failedInputStream input(String pattern) throws IOException
pattern - a naming pattern for the new streamIOException - if creating the stream faileddefault Reader reader() throws IOException
IOExceptiondefault Reader reader(String pattern) throws IOException
IOExceptiondefault OutputStreamWriter writer() throws IOException
IOExceptiondefault OutputStreamWriter writer(String pattern) throws IOException
IOExceptiondefault void close()
@Deprecated default File getFile()
Copyright © 2012–2020. All rights reserved.