@@ -214,7 +214,7 @@ boolean decodeElement()
214214 return true ;
215215 }
216216
217- void _binary ( String name )
217+ protected void _binary ( String name )
218218 throws IOException {
219219 final int totalLen = _in .readInt ();
220220 final byte bType = _in .read ();
@@ -267,7 +267,7 @@ Object _readBasicObject()
267267 return _basic .get ();
268268 }
269269
270- final class Input {
270+ protected final class Input {
271271
272272 Input ( InputStream in ){
273273 _raw = in ;
@@ -321,7 +321,7 @@ int _need( final int num )
321321 return ret ;
322322 }
323323
324- int readInt ()
324+ public int readInt ()
325325 throws IOException {
326326 return Bits .readInt ( _inputBuffer , _need (4 ) );
327327 }
@@ -341,7 +341,7 @@ long readLong()
341341 return Double .longBitsToDouble ( readLong () );
342342 }
343343
344- byte read ()
344+ public byte read ()
345345 throws IOException {
346346 if ( _pos < _len ){
347347 ++_read ;
@@ -350,12 +350,12 @@ byte read()
350350 return _inputBuffer [_need (1 )];
351351 }
352352
353- void fill ( byte b [] )
353+ public void fill ( byte b [] )
354354 throws IOException {
355355 fill ( b , b .length );
356356 }
357357
358- void fill ( byte b [] , int len )
358+ public void fill ( byte b [] , int len )
359359 throws IOException {
360360 // first use what we have
361361 int have = _len - _pos ;
@@ -471,8 +471,8 @@ String readUTF8String()
471471 }
472472
473473
474- private Input _in ;
475- private BSONCallback _callback ;
474+ protected Input _in ;
475+ protected BSONCallback _callback ;
476476 private byte [] _random = new byte [1024 ]; // has to be used within a single function
477477 private byte [] _inputBuffer = new byte [1024 ];
478478
0 commit comments