public static void checkOffsetAndCount ( final char [ ] buffer , final int charOffset , final int charCount ) { // Ensure we throw a NullPointerException instead of a JavascriptException in case the // given buffer is null. if ( buffer == null ) { throw new NullPointerException ( ) ; } checkOffsetAndCount ( buffer . length , charOffset , charCount ) ; }
Validates the offset and the byte count for the given array of characters .