Extract a NSTRING, starting at the current position. Return it as a ByteArray. The sequence 'NIL' is returned as null NSTRING := QuotedString | Literal | "NIL" @return a ByteArray
()
| 411 | * @return a ByteArray |
| 412 | */ |
| 413 | public ByteArray readByteArray() { |
| 414 | /* |
| 415 | * Special case, return the data after the continuation uninterpreted. |
| 416 | * It's usually a challenge for an AUTHENTICATE command. |
| 417 | */ |
| 418 | if (isContinuation()) { |
| 419 | skipSpaces(); |
| 420 | return new ByteArray(buffer, index, size - index); |
| 421 | } |
| 422 | return (ByteArray)parseString(false, false); |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Extract an ASTRING, starting at the current position |
no test coverage detected