2012-03-09 16:27:29 +01:00
|
|
|
package org.apg;
|
2010-07-16 20:13:12 +00:00
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
|
|
public class InputData {
|
|
|
|
|
private PositionAwareInputStream mInputStream;
|
|
|
|
|
private long mSize;
|
|
|
|
|
|
2012-03-09 16:27:29 +01:00
|
|
|
public InputData(InputStream inputStream, long size) {
|
2010-07-16 20:13:12 +00:00
|
|
|
mInputStream = new PositionAwareInputStream(inputStream);
|
|
|
|
|
mSize = size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public InputStream getInputStream() {
|
|
|
|
|
return mInputStream;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long getSize() {
|
|
|
|
|
return mSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long getStreamPosition() {
|
|
|
|
|
return mInputStream.position();
|
|
|
|
|
}
|
|
|
|
|
}
|