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.
|
getDesiredStreamSize
public FileOutputStreamProvider(File file)
file
- target file to createIllegalArgumentException
- if some parameters were null
public void next() throws IOException
OutputStreamProvider
current
stream should be closed by the client.next
in class OutputStreamProvider
IOException
- if failed to obtain next streampublic String getCurrentPath()
OutputStreamProvider
getCurrentPath
in class OutputStreamProvider
public CountingOutputStream openStream() throws IOException
OutputStreamProvider
openStream
in class OutputStreamProvider
IOException
- if failed to obtain the current streampublic void close()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.