diff options
Diffstat (limited to 'src/org/apg/InputData.java')
-rw-r--r-- | src/org/apg/InputData.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/org/apg/InputData.java b/src/org/apg/InputData.java new file mode 100644 index 000000000..ae5b51fe4 --- /dev/null +++ b/src/org/apg/InputData.java @@ -0,0 +1,25 @@ +package org.apg; + +import java.io.InputStream; + +public class InputData { + private PositionAwareInputStream mInputStream; + private long mSize; + + public InputData(InputStream inputStream, long size) { + mInputStream = new PositionAwareInputStream(inputStream); + mSize = size; + } + + public InputStream getInputStream() { + return mInputStream; + } + + public long getSize() { + return mSize; + } + + public long getStreamPosition() { + return mInputStream.position(); + } +} |