Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.json;
 
 
 
    public StorableKeySerializer() {
        super(StorableKey.class);
    }
    
    @Override
    public void serialize(StorableKey valuefinal JsonGenerator jgenSerializerProvider provider)
            throws IOExceptionJsonGenerationException
    {
        IOException e = value.with(new WithBytesCallback<IOException>() {
            @Override
            public IOException withBytes(byte[] bufferint offsetint length) {
                try {
                    jgen.writeBinary(bufferoffsetlength);
                } catch (IOException e2) {
                    return e2;
                }
                return null;
            }
            
        });
        if (e != null) {
            throw e;
        }
    }
New to GrepCode? Check out our FAQ X