Examples of DataFormat


Examples of org.geoserver.rest.format.DataFormat

     * set the default format is used, ie the first format returned from
     * {@link #createSupportedFormats(Request, Response)}
     * </p>
     */
    protected DataFormat getFormatGet() {
        DataFormat df = null;
       
        //check if the client specified an extension
        String ext = (String) getRequest().getAttributes().get( "format" );
        if ( ext == null ) {
            ext = (String) getRequest().getAttributes().get( "type" );
View Full Code Here

Examples of org.geoserver.rest.format.DataFormat

     */
    protected DataFormat getFormatPostOrPut() {
        MediaType type = getRequest().getEntity().getMediaType();
        if ( type != null ) {
            //DataFormat format = getFormats().get( type.toString() );
            DataFormat format = lookupFormat( type );
            /*
            if ( format == null ) {
                //check the sub type
                String sub = type.getSubType();
                if ( sub != null ) {
View Full Code Here

Examples of org.geoserver.rest.format.DataFormat

    /*
     * Helper method for looking up a format based on a media type.
     */
    DataFormat lookupFormat( MediaType mt ) {
        //exact match
        DataFormat fmt = getFormats().get( mt );
       
        if ( fmt == null ) {
            //check for the case of a media type being "contained"
            for ( MediaType mediaType : getFormats().keySet() ) {
                if ( mediaType.includes( mt ) || mt.includes( mediaType ) ) {
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.DataFormat

      @Override
      public void handle(CellVisitorContext context) {
       
        short srcFormat = context.getFormatIndex();
       
        DataFormat dataFormat = context.getBook().createDataFormat();
        short dstFormat = dataFormat.getFormat(format);
       
        if (srcFormat != dstFormat) {
          CellStyle newStyle = context.cloneCellStyle();
          newStyle.setDataFormat(dstFormat);
          context.getRange().setStyle(newStyle);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.