import java.util.Map;
import be.nikiroo.utils.IOUtils;
-import be.nikiroo.utils.NextableInputStream;
-import be.nikiroo.utils.NextableInputStreamStep;
+import be.nikiroo.utils.streams.NextableInputStream;
+import be.nikiroo.utils.streams.NextableInputStreamStep;
import be.nikiroo.utils.StringUtils;
/**
new NextableInputStreamStep('\n'));
try {
- if (in == null || stream.eof()) {
- if (in == null) {
- throw new NullPointerException("InputStream is null");
- }
+ if (in == null) {
+ throw new NullPointerException("InputStream is null");
+ }
+ if (stream.eof()) {
throw new NullPointerException("InputStream is empty");
}
boolean b64 = stream.startsWiths("B64:");
if (zip || b64) {
+ stream.skip("XXX:".length());
InputStream decoded = StringUtils.unbase64(stream.open(),
zip);
try {