110 super.write('\r');
111 super.write('\n');
112 return;
113 }
114 if (c == '\r') {
115 if (stickyCRLF)
116 seenCR = true;
117 else {
118 super.write('\r');
119 c = 0;
120 }
121 }
122 super.write(c);
123 }
124 }
125
126 /**
127 * Write the bytes at offset <i>off</i> in buffer <i>bytes</i> for
128 * <i>length</i> bytes.
129 */
130 public void write(byte bytes[], int off, int length) throws IOException {
131 if (binaryMode) {
132 super.write(bytes, off, length);
133 return;
134 }
135
136 while (--length >= 0) {
137 write(bytes[off++]);
138 }
139 }
140 }
|
110 super.write('\r');
111 super.write('\n');
112 return;
113 }
114 if (c == '\r') {
115 if (stickyCRLF)
116 seenCR = true;
117 else {
118 super.write('\r');
119 c = 0;
120 }
121 }
122 super.write(c);
123 }
124 }
125
126 /**
127 * Write the bytes at offset <i>off</i> in buffer <i>bytes</i> for
128 * <i>length</i> bytes.
129 */
130 public void write(byte[] bytes, int off, int length) throws IOException {
131 if (binaryMode) {
132 super.write(bytes, off, length);
133 return;
134 }
135
136 while (--length >= 0) {
137 write(bytes[off++]);
138 }
139 }
140 }
|