Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.json;
 
 
 
    public IpAndPortDeserializer() { super(IpAndPort.class); }
    @Override
            throws IOExceptionJsonProcessingException
    {
        switch (jp.getCurrentToken()) {
        // should we support anything other than Strings?
        case :
            return new IpAndPort(jp.getText());
        default:
        	throw ctxt.mappingException(IpAndPort.classjp.getCurrentToken());
        }
    }
New to GrepCode? Check out our FAQ X