public class FileOutputStreamProvider extends OutputStreamProvider
OutputStreamProvider using files.| Constructor and Description |
|---|
FileOutputStreamProvider(File file)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getCurrentPath()
Returns the path about the current stream.
|
void |
next()
Advances the current stream to the next one.
|
CountingOutputStream |
openStream()
Returns the current stream.
|
getDesiredStreamSizepublic FileOutputStreamProvider(File file)
file - target file to createIllegalArgumentException - if some parameters were nullpublic void next()
throws IOException
OutputStreamProvidercurrent stream should be closed by the client.next in class OutputStreamProviderIOException - if failed to obtain next streampublic String getCurrentPath()
OutputStreamProvidergetCurrentPath in class OutputStreamProviderpublic CountingOutputStream openStream() throws IOException
OutputStreamProvideropenStream in class OutputStreamProviderIOException - if failed to obtain the current streampublic void close()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.