java.io.Closeable, java.lang.AutoCloseablepublic static final class DataBlocks.BlockUploadData
extends java.lang.Object
implements java.io.Closeable
toByteArray() method to be used to convert the data into byte
array to be done in this class as well.
When closed, any stream is closed. Any source file is untouched.| Constructor | Description |
|---|---|
BlockUploadData(byte[] byteArray) |
Constructor for byteArray upload data block.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close: closes any upload stream and byteArray provided in the
constructor.
|
byte[] |
toByteArray() |
Convert to a byte array.
|
public BlockUploadData(byte[] byteArray)
byteArray - byteArray used to construct BlockUploadData.public byte[] toByteArray()
throws java.io.IOException
java.io.IOException - throw if an exception is caught while reading
File/InputStream or closing InputStream.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - inherited exception.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.