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, CanSetDropBehind, Syncable
public class CryptoFSDataOutputStream
- extends FSDataOutputStream
Method Summary |
long |
getPos()
Get the current position in the output stream. |
Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoFSDataOutputStream
public CryptoFSDataOutputStream(FSDataOutputStream out,
org.apache.hadoop.crypto.CryptoCodec codec,
int bufferSize,
byte[] key,
byte[] iv)
throws IOException
- Throws:
IOException
CryptoFSDataOutputStream
public CryptoFSDataOutputStream(FSDataOutputStream out,
org.apache.hadoop.crypto.CryptoCodec codec,
byte[] key,
byte[] iv)
throws IOException
- Throws:
IOException
getPos
public long getPos()
throws IOException
- Description copied from class:
FSDataOutputStream
- Get the current position in the output stream.
- Overrides:
getPos
in class FSDataOutputStream
- Returns:
- the current position in the output stream
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.