@@ -214,7 +214,7 @@ boolean decodeElement()
214
214
return true ;
215
215
}
216
216
217
- void _binary ( String name )
217
+ protected void _binary ( String name )
218
218
throws IOException {
219
219
final int totalLen = _in .readInt ();
220
220
final byte bType = _in .read ();
@@ -267,7 +267,7 @@ Object _readBasicObject()
267
267
return _basic .get ();
268
268
}
269
269
270
- final class Input {
270
+ protected final class Input {
271
271
272
272
Input ( InputStream in ){
273
273
_raw = in ;
@@ -321,7 +321,7 @@ int _need( final int num )
321
321
return ret ;
322
322
}
323
323
324
- int readInt ()
324
+ public int readInt ()
325
325
throws IOException {
326
326
return Bits .readInt ( _inputBuffer , _need (4 ) );
327
327
}
@@ -341,7 +341,7 @@ long readLong()
341
341
return Double .longBitsToDouble ( readLong () );
342
342
}
343
343
344
- byte read ()
344
+ public byte read ()
345
345
throws IOException {
346
346
if ( _pos < _len ){
347
347
++_read ;
@@ -350,12 +350,12 @@ byte read()
350
350
return _inputBuffer [_need (1 )];
351
351
}
352
352
353
- void fill ( byte b [] )
353
+ public void fill ( byte b [] )
354
354
throws IOException {
355
355
fill ( b , b .length );
356
356
}
357
357
358
- void fill ( byte b [] , int len )
358
+ public void fill ( byte b [] , int len )
359
359
throws IOException {
360
360
// first use what we have
361
361
int have = _len - _pos ;
@@ -471,8 +471,8 @@ String readUTF8String()
471
471
}
472
472
473
473
474
- private Input _in ;
475
- private BSONCallback _callback ;
474
+ protected Input _in ;
475
+ protected BSONCallback _callback ;
476
476
private byte [] _random = new byte [1024 ]; // has to be used within a single function
477
477
private byte [] _inputBuffer = new byte [1024 ];
478
478
0 commit comments