public interface DataTarget extends Closeable
The target for writing data.
| Modifier and Type | Method and Description | 
|---|---|
String | 
getName()
 Returns the name of the source. 
 | 
OutputStream | 
getOutputStream()
 Returns a stream for writing the data. 
 | 
String getName()
Returns the name of the source.
This name is used e.g. for detail messages of exceptions.
OutputStream getOutputStream() throws IOException
Returns a stream for writing the data.
 The method will always return the same OutputStream if the source
 is still open. If the OutputStream.close() method is called the
 source will behave the same as the Closeable.close() method was called.
 
IOException - If an I/O error occurs.Copyright © 2015–2019. All rights reserved.