@@ -226,7 +226,7 @@ public synchronized void reset() {
226226 _current_offset = _marked_offset ;
227227 }
228228
229- @ Override
229+ @ Override
230230 public long skip (long n ) throws IOException {
231231 dieIfClosed ();
232232 if (n < 0 ) {
@@ -259,7 +259,7 @@ private boolean atEOD() {
259259 return _current_offset == _document_size ;
260260 }
261261
262- private void checkAvaliable (int requestedSize ) {
262+ private void checkAvailable (int requestedSize ) {
263263 if (_closed ) {
264264 throw new IllegalStateException ("cannot perform requested operation on a closed stream" );
265265 }
@@ -280,7 +280,7 @@ public void readFully(byte[] buf, int off, int len) {
280280 throw new IllegalArgumentException ("Can't read negative number of bytes, but had: " + len );
281281 }
282282
283- checkAvaliable (len );
283+ checkAvailable (len );
284284
285285 int read = 0 ;
286286 while (read < len ) {
@@ -314,23 +314,23 @@ public double readDouble() {
314314
315315 @ Override
316316 public long readLong () {
317- checkAvaliable (LONG_SIZE );
317+ checkAvailable (LONG_SIZE );
318318 byte [] data = new byte [LONG_SIZE ];
319319 readFully (data , 0 , LONG_SIZE );
320320 return LittleEndian .getLong (data , 0 );
321321 }
322322
323323 @ Override
324324 public short readShort () {
325- checkAvaliable (SHORT_SIZE );
325+ checkAvailable (SHORT_SIZE );
326326 byte [] data = new byte [SHORT_SIZE ];
327327 readFully (data , 0 , SHORT_SIZE );
328328 return LittleEndian .getShort (data );
329329 }
330330
331331 @ Override
332332 public int readInt () {
333- checkAvaliable (INT_SIZE );
333+ checkAvailable (INT_SIZE );
334334 byte [] data = new byte [INT_SIZE ];
335335 readFully (data , 0 , INT_SIZE );
336336 return LittleEndian .getInt (data );
@@ -343,15 +343,15 @@ public long readUInt() {
343343
344344 @ Override
345345 public int readUShort () {
346- checkAvaliable (SHORT_SIZE );
346+ checkAvailable (SHORT_SIZE );
347347 byte [] data = new byte [SHORT_SIZE ];
348348 readFully (data , 0 , SHORT_SIZE );
349349 return LittleEndian .getUShort (data );
350350 }
351351
352352 @ Override
353353 public int readUByte () {
354- checkAvaliable (1 );
354+ checkAvailable (1 );
355355 byte [] data = new byte [1 ];
356356 readFully (data , 0 , 1 );
357357 if (data [0 ] >= 0 )
0 commit comments