Write a ByteChunk out at the current write position. A null ByteChunk is encoded as a string with length 0. @param bc The data to write
(ByteChunk bc)
| 177 | * @param bc The data to write |
| 178 | */ |
| 179 | public void appendByteChunk(ByteChunk bc) { |
| 180 | if (bc == null) { |
| 181 | log.error(sm.getString("ajpmessage.null"), new NullPointerException()); |
| 182 | appendInt(0); |
| 183 | appendByte(0); |
| 184 | return; |
| 185 | } |
| 186 | appendBytes(bc.getBytes(), bc.getStart(), bc.getLength()); |
| 187 | } |
| 188 | |
| 189 | |
| 190 | /** |
no test coverage detected