net.floodlightcontroller.core.web.serializers
Class MACSerializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<java.lang.Long>
      extended by net.floodlightcontroller.core.web.serializers.MACSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class MACSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<java.lang.Long>

Serialize a MAC as colon-separated hexadecimal


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Constructor Summary
MACSerializer()
           
 
Method Summary
 void serialize(java.lang.Long dpid, com.fasterxml.jackson.core.JsonGenerator jGen, com.fasterxml.jackson.databind.SerializerProvider serializer)
           
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MACSerializer

public MACSerializer()
Method Detail

serialize

public void serialize(java.lang.Long dpid,
                      com.fasterxml.jackson.core.JsonGenerator jGen,
                      com.fasterxml.jackson.databind.SerializerProvider serializer)
               throws java.io.IOException,
                      com.fasterxml.jackson.core.JsonProcessingException
Specified by:
serialize in class com.fasterxml.jackson.databind.JsonSerializer<java.lang.Long>
Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonProcessingException