Tabnine Logo
SerializableRenderedImage.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javax.media.jai.remote.SerializableRenderedImage
constructor

Best Java code snippets using javax.media.jai.remote.SerializableRenderedImage.<init> (Showing top 4 results out of 315)

origin: geotools/geotools

    new SerializableRenderedImage(
        source, false, null, tileEncoding, null, null);
final LogRecord record =
origin: org.geotools/gt-coverage

/**
 * Serializes this grid coverage. Before serialization, a {@linkplain SerializableRenderedImage
 * serializable rendered image} is created if it was not already done.
 */
private void writeObject(final ObjectOutputStream out) throws IOException {
  if (serializedImage == null) {
    RenderedImage source = image;
    while (source instanceof RenderedImageAdapter) {
      source = ((RenderedImageAdapter) source).getWrappedImage();
    }
    if (source instanceof SerializableRenderedImage) {
      serializedImage = (SerializableRenderedImage) source;
    } else {
      if (tileEncoding == null) {
        tileEncoding = "gzip";
      }
      serializedImage = new SerializableRenderedImage(source, false, null,
                              tileEncoding, null, null);
      final LogRecord record = Loggings.format(Level.FINE,
          LoggingKeys.CREATED_SERIALIZABLE_IMAGE_$2, getName(), tileEncoding);
      record.setSourceClassName(GridCoverage2D.class.getName());
      record.setSourceMethodName("writeObject");
      record.setLoggerName(LOGGER.getName());
      LOGGER.log(record);
    }
  }
  out.defaultWriteObject();
}
origin: org.geotools/gt2-coverage

/**
 * Serializes this grid coverage. Before serialization, a {@linkplain SerializableRenderedImage
 * serializable rendered image} is created if it was not already done.
 */
private void writeObject(final ObjectOutputStream out) throws IOException {
  ensureValid();
  if (serializedImage == null) {
    RenderedImage source = image;
    while (source instanceof RenderedImageAdapter) {
      source = ((RenderedImageAdapter) source).getWrappedImage();
    }
    if (source instanceof SerializableRenderedImage) {
      serializedImage = (SerializableRenderedImage) source;
    } else {
      if (tileEncoding == null) {
        tileEncoding = "gzip";
      }
      serializedImage = new SerializableRenderedImage(source, false, null,
                              tileEncoding, null, null);
      final LogRecord record = Logging.format(Level.FINE,
          LoggingKeys.CREATED_SERIALIZABLE_IMAGE_$2, getName(), tileEncoding);
      record.setSourceClassName(GridCoverage2D.class.getName());
      record.setSourceMethodName("writeObject");
      LOGGER.log(record);
    }
  }
  out.defaultWriteObject();
}
origin: org.geotools/gt-imagemosaic

      sampleImageFile));
  ooStream = new ObjectOutputStream(outStream);
  sri = new SerializableRenderedImage(sampleImage, true);
  ooStream.writeObject(sri);
} finally {
javax.media.jai.remoteSerializableRenderedImage<init>

Popular methods of SerializableRenderedImage

  • dispose
  • getColorModel
  • getImageID
  • getSampleModel

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now