public interface DirectoryMarshaller
Modifier and Type | Interface and Description |
---|---|
static class |
DirectoryMarshaller.Factory
Factory to access the DirectoryMarshaller.
|
static class |
DirectoryMarshaller.Type
An enum to represent the different
DirectoryMarshaller types. |
Modifier and Type | Method and Description |
---|---|
long |
read(Path path,
InputStream inputStream)
Reads the content from the inputStream and writes them to the specified path.
|
long |
write(Path path,
OutputStream outputStream)
Writes the contents of path ot outputStream such that it can be read by
read(Path, InputStream) . |
long write(Path path, OutputStream outputStream) throws IOException, InterruptedException
read(Path, InputStream)
.path
- the directory to marshalloutputStream
- the output stream that the marshalled informationIOException
InterruptedException
long read(Path path, InputStream inputStream) throws IOException
path
- the output pathinputStream
- the stream to read the data fromIOException
Copyright © 2023. All Rights Reserved.