private void readBOM ( ) throws EOFException { int readerIndex = content . readerIndex ( ) ; int lastBOMIndex = content . forEachByte ( bomProcessor ) ; if ( lastBOMIndex == - 1 ) { throw NEED_MORE_DATA ; } if ( lastBOMIndex > readerIndex ) { this . content . skipBytes ( lastBOMIndex - readerIndex + 1 ) ; this . content . discardReadBytes ( ) ; } this . levelStack . pop ( ) ; }
Reads the UTF - 8 Byte Order Mark .