public class VirgilStreamDataSink extends VirgilDataSink implements Closeable
swigCMemOwn| Constructor and Description |
|---|
VirgilStreamDataSink(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isGood() |
void |
write(byte[] data)
Write data to the target object.
|
delete, finalize, getCPtr, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnershippublic VirgilStreamDataSink(OutputStream stream)
public boolean isGood()
throws IOException
isGood in class VirgilDataSinktrue if target object is able to write data.IOException - if an error occurred.public void write(byte[] data)
throws IOException
VirgilDataSinkwrite in class VirgilDataSinkdata - the data.IOException - if an error occurred.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class VirgilDataSinkIOExceptionCopyright © 2016. All rights reserved.