-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I want to write an output encrypted file
but wo have a question
decodeBuffer(InputStream aStream, OutputStream bStream) will Infinite loop.
public void decodeBuffer(InputStream aStream, OutputStream bStream) throws IOException {
int totalBytes = 0;
PushbackInputStream ps = new PushbackInputStream(aStream);
this.decodeBufferPrefix(ps, bStream);
while(true) {
try {
int length = this.decodeLinePrefix(ps, bStream);
int i;
for(i = 0; i + this.bytesPerAtom() < length; i += this.bytesPerAtom()) {
this.decodeAtom(ps, bStream, this.bytesPerAtom());
totalBytes += this.bytesPerAtom();
}
if(i + this.bytesPerAtom() == length) {
this.decodeAtom(ps, bStream, this.bytesPerAtom());
totalBytes += this.bytesPerAtom();
} else {
this.decodeAtom(ps, bStream, length - i);
totalBytes += length - i;
}
this.decodeLineSuffix(ps, bStream);
} catch (CEStreamExhausted var8) {
this.decodeBufferSuffix(ps, bStream);
return;
}
}
}
Metadata
Metadata
Assignees
Labels
No labels