public static final class S3ADataBlocks.BlockUploadData extends Object implements Closeable
Constructor and Description |
---|
BlockUploadData(File file)
File constructor; input stream will be null.
|
BlockUploadData(InputStream uploadStream)
Stream constructor, file field will be null.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close: closes any upload stream provided in the constructor.
|
public BlockUploadData(File file)
file
- file to uploadpublic BlockUploadData(InputStream uploadStream)
uploadStream
- stream to uploadpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
- inherited exceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.