diff options
Diffstat (limited to 'src/org/thialfihar/android/apg/InputData.java')
-rw-r--r-- | src/org/thialfihar/android/apg/InputData.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/org/thialfihar/android/apg/InputData.java b/src/org/thialfihar/android/apg/InputData.java new file mode 100644 index 000000000..cf49f1c33 --- /dev/null +++ b/src/org/thialfihar/android/apg/InputData.java @@ -0,0 +1,25 @@ +package org.thialfihar.android.apg;
+
+import java.io.InputStream;
+
+public class InputData {
+ private PositionAwareInputStream mInputStream;
+ private long mSize;
+
+ 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();
+ }
+}
|