com.github.fedy2.weather.binding.adapter
Class RFC822DateAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      extended by com.github.fedy2.weather.binding.adapter.RFC822DateAdapter

public class RFC822DateAdapter
extends XmlAdapter<String,Date>

Author:
"Federico De Faveri defaveri@gmail.com"

Field Summary
static SimpleDateFormat[] rfc822DateFormats
           
 
Constructor Summary
RFC822DateAdapter()
           
 
Method Summary
 String marshal(Date v)
          
 Date unmarshal(String v)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rfc822DateFormats

public static final SimpleDateFormat[] rfc822DateFormats
Constructor Detail

RFC822DateAdapter

public RFC822DateAdapter()
Method Detail

marshal

public String marshal(Date v)
               throws Exception

Specified by:
marshal in class XmlAdapter<String,Date>
Throws:
Exception

unmarshal

public Date unmarshal(String v)
               throws Exception

Specified by:
unmarshal in class XmlAdapter<String,Date>
Throws:
Exception


Copyright © 2013. All rights reserved.