-public class MarkableFileInputStream extends FilterInputStream {
- private FileChannel channel;
- private long mark = 0;
-
- /**
- * Create a new {@link MarkableFileInputStream} from this stream.
- *
- * @param in
- * the original {@link FileInputStream} to wrap
- */
- public MarkableFileInputStream(FileInputStream in) {
- super(in);
- channel = in.getChannel();
- }
-
- @Override
- public boolean markSupported() {
- return true;
- }
-
- @Override
- public synchronized void mark(int readlimit) {
- try {
- mark = channel.position();
- } catch (IOException ex) {
- ex.printStackTrace();
- mark = -1;
- }
+@Deprecated
+public class MarkableFileInputStream extends
+ be.nikiroo.utils.streams.MarkableFileInputStream {
+ public MarkableFileInputStream(File file) throws FileNotFoundException {
+ super(file);