org.apache.hadoop.hdfs.server.namenode
Class FSEditLogLoader.PositionTrackingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.PositionTrackingInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader
public static class FSEditLogLoader.PositionTrackingInputStream
- extends FilterInputStream
Stream wrapper that keeps track of the current stream position.
Method Summary |
long |
getPos()
|
void |
mark(int limit)
|
int |
read()
|
int |
read(byte[] data)
|
int |
read(byte[] data,
int offset,
int length)
|
void |
reset()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSEditLogLoader.PositionTrackingInputStream
public FSEditLogLoader.PositionTrackingInputStream(InputStream is)
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] data)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] data,
int offset,
int length)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
mark
public void mark(int limit)
- Overrides:
mark
in class FilterInputStream
reset
public void reset()
throws IOException
- Overrides:
reset
in class FilterInputStream
- Throws:
IOException
getPos
public long getPos()
Copyright © 2012 Apache Software Foundation. All Rights Reserved.