if (read < 0) {
isEOF = true;
try {
myTranslatedBuffer = mySubstitutor.translateChunk(null, myTranslatedBuffer);
} catch (SVNException svne) {
IOExceptionWrapper wrappedException = new IOExceptionWrapper(svne);
throw wrappedException;
}
break;
}
try {
myTranslatedBuffer = mySubstitutor.translateChunk(ByteBuffer.wrap(mySourceBuffer, 0, read), myTranslatedBuffer);
} catch (SVNException svne) {
IOExceptionWrapper wrappedException = new IOExceptionWrapper(svne);
throw wrappedException;
}
available = myTranslatedBuffer.position();
}
myTranslatedBuffer.flip();