SeekableStream
mark()
resest()
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
127128129130131132133134135136137
if (future.isDone()) { try { ImageResult result; result = future.get(); // create a rendered image RenderedImage image = JAI.create("stream", new ByteArraySeekableStream(result.getImage())); // convert to common direct colormodel (some images have their own indexed color model) RenderedImage colored = toDirectColorModel(image); // translate to the correct position in the tile grid double xOffset = result.getRasterImage().getCode().getX() * tileWidth - pixelBounds.getX();
180181182183184185186187188189190
if (future.isDone()) { try { ImageResult result; result = future.get(); // create a rendered image RenderedImage image = JAI.create("stream", new ByteArraySeekableStream(result .getImage())); // convert to common direct colormodel (some images have their own indexed color model) RenderedImage colored = toDirectColorModel(image); // translate to the correct position in the tile grid
619620621622623624625626627628629
ss.changeDirectoryToRoot(); byte[] s = ss.getStreamAsBytes("SummaryInformation"); PropertySet ps = new PropertySet(new ByteArraySeekableStream(s)); // Get the thumbnail property byte[] thumb = ps.getBlob(17); // Emit it as a BMP file
425426427428429430431432433434435
/* */ /* 628 */ ss.changeDirectoryToRoot(); /* */ /* 630 */ byte[] s = ss.getStreamAsBytes("\005SummaryInformation"); /* */ /* 632 */ PropertySet ps = new PropertySet(new ByteArraySeekableStream(s)); /* */ /* 635 */ byte[] thumb = ps.getBlob(17); /* */ /* 638 */ System.out.print("BM"); /* 639 */ int fs = thumb.length - 8 + 14 + 40;
789790791792793794795796797798799
if (LOGGER.isLoggable(Level.WARNING)) { LOGGER .warning("Image IO cannot read from ByteInputStream,use less efficient jai methods"); } li.setCanImageIOReadFromInputStream(false); SeekableStream stream = new ByteArraySeekableStream(tileBytes); String decoderName = null; for (String dn : ImageCodec.getDecoderNames(stream)) { decoderName = dn; break;
174175176177178179180181182183184
* @return * @throws IOException */ private BufferedImage readImage2(byte[] imageBytes) throws IOException { SeekableStream stream = new ByteArraySeekableStream(imageBytes); String decoderName = null; for (String dn : ImageCodec.getDecoderNames(stream)) { decoderName = dn; break;
753754755756757758759760761762763
} } private BufferedImage readImage2(byte[] imageBytes) throws IOException { SeekableStream stream = new ByteArraySeekableStream(imageBytes); String decoderName = null; for (String dn : ImageCodec.getDecoderNames(stream)) { decoderName = dn; break;
442443444445446447448449450451452
LOGGER.fine("Starting to Retrieve GeoRaster Image"); byte[] bytes = getImageBytesUsingSDOExport(envelope, level, conn); // start creating a java Buffered image from the blob SeekableStream stream = new ByteArraySeekableStream(bytes); // find an ImageDecorder String decoderName = null; for (String dn : ImageCodec.getDecoderNames(stream)) { decoderName = dn;