private class FilesInDirectoryMultiOutputStrategy.FileDestination extends Object implements MultiOutputSerializationStage.Destination
MultiOutputSerializationStage.Destination objects.| Modifier and Type | Field and Description |
|---|---|
private File |
file
The destination
File. |
| Modifier | Constructor and Description |
|---|---|
protected |
FilesInDirectoryMultiOutputStrategy.FileDestination(File f)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
OutputStream |
getOutputStream()
Gets an
OutputStream to which an item should be serialized. |
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic OutputStream getOutputStream() throws IOException
MultiOutputSerializationStage.DestinationOutputStream to which an item should be serialized.getOutputStream in interface MultiOutputSerializationStage.DestinationIOException - if there is an error creating the output streamCopyright © 1999–2016. All rights reserved.