Package javax.media.jai.tilecodec

Examples of javax.media.jai.tilecodec.TileDecoder


      if (codecCap != null) {
    byte ctile[] = remoteImage.getCompressedTile(id,
                   tileX,
                   tileY);
    ByteArrayInputStream stream = new ByteArrayInputStream(ctile);
    TileDecoder decoder = tdf.createDecoder(stream, tcpl);
    try {
        return decoder.decode();
    } catch (java.io.IOException ioe) {
        throw new RemoteImagingException(ImageUtil.getStackTraceString(ioe));
    }
      } else {
    // Ask for uncompressed tiles.
View Full Code Here


      } else
    decodingParam = getTileCodecDescriptor("tileDecoder", formatName).
        getDefaultParameters("tileDecoder");
  }

        TileDecoder decoder =
            tileDecoderFactory.createDecoder(bis, decodingParam);
        try {
            return decoder.decode();
        } catch (IOException e) {
            sendExceptionToListener(JaiI18N.getString("SerializableRenderedImage16"),
                                    new ImagingException(JaiI18N.getString("SerializableRenderedImage16"), e));
//            throw new RuntimeException(e.getMessage());
        }
View Full Code Here

        String formatName,
        InputStream input,
        TileCodecParameterList param)
  throws IOException {
 
  TileDecoder decoder = create(registry, formatName, input, param);

  if (decoder == null) {
      return null;
  }

  return decoder.decode();
    }
View Full Code Here

        String formatName,
        InputStream input,
        TileCodecParameterList param,
        Point location) throws IOException {

  TileDecoder decoder = create(registry, formatName, input, param);

  if (decoder == null) {
      return null;
  }

  return decoder.decode(location);
    }
View Full Code Here

/*      */       {
/* 1247 */         this.decodingParam = getTileCodecDescriptor("tileDecoder", this.formatName).getDefaultParameters("tileDecoder");
/*      */       }
/*      */     }
/*      */
/* 1251 */     TileDecoder decoder = this.tileDecoderFactory.createDecoder(bis, this.decodingParam);
/*      */     try
/*      */     {
/* 1254 */       return decoder.decode();
/*      */     } catch (IOException e) {
/* 1256 */       sendExceptionToListener(JaiI18N.getString("SerializableRenderedImage16"), new ImagingException(JaiI18N.getString("SerializableRenderedImage16"), e));
/*      */     }
/*      */
/* 1260 */     return null;
View Full Code Here

/*     */   }
/*     */
/*     */   public static Raster decode(OperationRegistry registry, String formatName, InputStream input, TileCodecParameterList param)
/*     */     throws IOException
/*     */   {
/* 459 */     TileDecoder decoder = create(registry, formatName, input, param);
/*     */
/* 461 */     if (decoder == null) {
/* 462 */       return null;
/*     */     }
/*     */
/* 465 */     return decoder.decode();
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public static Raster decode(OperationRegistry registry, String formatName, InputStream input, TileCodecParameterList param, Point location)
/*     */     throws IOException
/*     */   {
/* 539 */     TileDecoder decoder = create(registry, formatName, input, param);
/*     */
/* 541 */     if (decoder == null) {
/* 542 */       return null;
/*     */     }
/*     */
/* 545 */     return decoder.decode(location);
/*     */   }
View Full Code Here

TOP

Related Classes of javax.media.jai.tilecodec.TileDecoder

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.