Package org.apache.hadoop.fs.crypto
Class CryptoFSDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.apache.hadoop.fs.FSDataOutputStream
org.apache.hadoop.fs.crypto.CryptoFSDataOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable,Abortable,CanSetDropBehind,IOStatisticsSource,StreamCapabilities,Syncable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.Abortable
Abortable.AbortableResultNested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities
StreamCapabilities.StreamCapability -
Field Summary
Fields inherited from class java.io.DataOutputStream
writtenFields inherited from class java.io.FilterOutputStream
outFields inherited from interface org.apache.hadoop.fs.StreamCapabilities
ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO, VECTOREDIO_BUFFERS_SLICED -
Constructor Summary
ConstructorsConstructorDescriptionCryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, byte[] key, byte[] iv) CryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, int bufferSize, byte[] key, byte[] iv) CryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, int bufferSize, byte[] key, byte[] iv, boolean closeOutputStream) -
Method Summary
Methods inherited from class org.apache.hadoop.fs.FSDataOutputStream
abort, close, getIOStatistics, getWrappedStream, hasCapability, hflush, hsync, setDropBehind, toStringMethods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from class java.io.FilterOutputStream
writeMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.DataOutput
write
-
Constructor Details
-
CryptoFSDataOutputStream
public CryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, int bufferSize, byte[] key, byte[] iv) throws IOException - Throws:
IOException
-
CryptoFSDataOutputStream
public CryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, int bufferSize, byte[] key, byte[] iv, boolean closeOutputStream) throws IOException - Throws:
IOException
-
CryptoFSDataOutputStream
public CryptoFSDataOutputStream(FSDataOutputStream out, CryptoCodec codec, byte[] key, byte[] iv) throws IOException - Throws:
IOException
-
-
Method Details
-
getPos
public long getPos()Description copied from class:FSDataOutputStreamGet the current position in the output stream.- Overrides:
getPosin classFSDataOutputStream- Returns:
- the current position in the output stream
-