public void markContentBegin() { this.recordingOutputStream.markMessageBodyBegin(); }
public void markContentBegin() { this.recordingOutputStream.markMessageBodyBegin(); }
public void markContentBegin() { this.recordingOutputStream.markMessageBodyBegin(); }
public void write(int b) throws IOException { if(position<maxPosition) { // revisiting previous content; do nothing but advance position position++; return; } if(recording) { record(b); } if (this.out != null) { this.out.write(b); } // see comment on int[] lastTwoBytes if (messageBodyBeginMark < 0l) { // looking for "\n\n" or "\n\r\n" if (b == '\n' && (lastTwoBytes[1] == '\n' || (lastTwoBytes[0] == '\n' && lastTwoBytes[1] == '\r'))) { markMessageBodyBegin(); } else { lastTwoBytes[0] = lastTwoBytes[1]; lastTwoBytes[1] = b; } } checkLimits(); }
public void write(int b) throws IOException { if(position<maxPosition) { // revisiting previous content; do nothing but advance position position++; return; } if(recording) { record(b); } if (this.out != null) { this.out.write(b); } // see comment on int[] lastTwoBytes if (messageBodyBeginMark < 0l) { // looking for "\n\n" or "\n\r\n" if (b == '\n' && (lastTwoBytes[1] == '\n' || (lastTwoBytes[0] == '\n' && lastTwoBytes[1] == '\r'))) { markMessageBodyBegin(); } else { lastTwoBytes[0] = lastTwoBytes[1]; lastTwoBytes[1] = b; } } checkLimits(); }
this.out.write(b, off, mark - off); markMessageBodyBegin(); len = len - (mark - off); off = mark;
this.out.write(b, off, mark - off); markMessageBodyBegin(); len = len - (mark - off); off = mark;