Code example for ObjectInput

Methods: readByte

0
    } 
 
    @Override 
    public Array readObject( ObjectInput input ) throws IOException {
        // Read the type byte ... 
        int type = input.readByte();
        assert type == 1;
 
        // Read the BSON ... 
        return SHARED_READER.readArray(input);
    } 
 
    @Override 
    public Integer getId() {
        return Ids.SCHEMATIC_VALUE_DOCUMENT; 
    } 
 
    @SuppressWarnings( "unchecked" ) 
    @Override 
    public Set<Class<? extends Array>> getTypeClasses() {
Experience pair programming with AI  Get Codota for Java