| Constructor and Description |
|---|
DataByteArraySwap(String name)
Creates a swap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataSource |
getSource()
Returns the source.
|
DataTarget |
getTarget()
Returns the target.
|
public DataByteArraySwap(String name)
Creates a swap.
name - The name of the target and source.IllegalArgumentException - If the name is null.public DataTarget getTarget() throws IOException
DataSwapReturns the target.
Subsequent calls will return the same target.
getTarget in interface DataSwapIOException - If an I/O error occurs while creating the target.public DataSource getSource() throws IOException
DataSwapReturns the source.
Subsequent calls will return the same source.
getSource in interface DataSwapIOException - If an I/O error occurs while creating the source.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015–2019. All rights reserved.