Package com.jaxws.json.codec

Examples of com.jaxws.json.codec.DateFormat


      assert date != null;
     
      /*
       *  Step 5.4.1: check is custom date format annotation added.
       */
      DateFormat     currentFormat   = (customInfo != null && customInfo.format().length() > 0) ?
          DateFormat.CUSTOM : this.dateFormat;
       
      /*
       *  Step 5.4.2: serialize date based on format.
       */
      switch(currentFormat){
      case PLAIN:
        this.add(String.valueOf(date.getTime()));
        break;
      case CUSTOM:
        this.string(this.date2String(date,customInfo.format()));
        return;
      default:
        this.string(this.date2String(date,currentFormat.getFormat()));
      }
    }
View Full Code Here

TOP

Related Classes of com.jaxws.json.codec.DateFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.