congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WriterWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
WriterWrapper
in
loci.formats

Best Java code snippets using loci.formats.WriterWrapper (Showing top 8 results out of 315)

origin: ome/formats-api

Class<? extends IFormatWriter> imageWriterClass) throws FormatException
WriterWrapper wrapperCopy = duplicateRecurse(imageWriterClass);
boolean interleaved = isInterleaved();
ColorModel cm = getColorModel();
int rate = getFramesPerSecond();
String compress = getCompression();
int tileSizeX = getTileSizeX();
int tileSizeY = getTileSizeY();
wrapperCopy.setInterleaved(interleaved);
wrapperCopy.setColorModel(cm);
wrapperCopy.setFramesPerSecond(rate);
wrapperCopy.setCompression(compress);
wrapperCopy.setTileSizeX(tileSizeX);
wrapperCopy.setTileSizeY(tileSizeY);
return wrapperCopy;
origin: ome/formats-api

/**
 * Unwraps nested wrapped writers until the given writer class is found.
 *
 * @param writerClass Class of the desired nested writer. If null, the
 *   core writer (i.e., deepest wrapped writer) will be returned.
 * @param id Id to use as a basis when unwrapping any nested
 *   {@link ImageWriter}s. If null, the current id is used.
 */
public IFormatWriter unwrap(Class<? extends IFormatWriter> writerClass,
 String id) throws FormatException, IOException
{
 IFormatWriter w = this;
 while (w instanceof WriterWrapper || w instanceof ImageWriter) {
  if (writerClass != null && writerClass.isInstance(w)) break;
  if (w instanceof ImageWriter) {
   ImageWriter iw = (ImageWriter) w;
   w = id == null ? iw.getWriter() : iw.getWriter(id);
  }
  else w = ((WriterWrapper) w).getWriter();
 }
 if (writerClass != null && !writerClass.isInstance(w)) return null;
 return w;
}
origin: ome/formats-api

if (writer instanceof WriterWrapper) {
 childCopy = ((WriterWrapper) writer).duplicateRecurse(imageWriterClass);
origin: openmicroscopy/bioformats

/**
 * Unwraps nested wrapped writers until the given writer class is found.
 *
 * @param writerClass Class of the desired nested writer. If null, the
 *   core writer (i.e., deepest wrapped writer) will be returned.
 * @param id Id to use as a basis when unwrapping any nested
 *   {@link ImageWriter}s. If null, the current id is used.
 */
public IFormatWriter unwrap(Class<? extends IFormatWriter> writerClass,
 String id) throws FormatException, IOException
{
 IFormatWriter w = this;
 while (w instanceof WriterWrapper || w instanceof ImageWriter) {
  if (writerClass != null && writerClass.isInstance(w)) break;
  if (w instanceof ImageWriter) {
   ImageWriter iw = (ImageWriter) w;
   w = id == null ? iw.getWriter() : iw.getWriter(id);
  }
  else w = ((WriterWrapper) w).getWriter();
 }
 if (writerClass != null && !writerClass.isInstance(w)) return null;
 return w;
}
origin: openmicroscopy/bioformats

if (writer instanceof WriterWrapper) {
 childCopy = ((WriterWrapper) writer).duplicateRecurse(imageWriterClass);
origin: openmicroscopy/bioformats

Class<? extends IFormatWriter> imageWriterClass) throws FormatException
WriterWrapper wrapperCopy = duplicateRecurse(imageWriterClass);
boolean interleaved = isInterleaved();
ColorModel cm = getColorModel();
int rate = getFramesPerSecond();
String compress = getCompression();
int tileSizeX = getTileSizeX();
int tileSizeY = getTileSizeY();
wrapperCopy.setInterleaved(interleaved);
wrapperCopy.setColorModel(cm);
wrapperCopy.setFramesPerSecond(rate);
wrapperCopy.setCompression(compress);
wrapperCopy.setTileSizeX(tileSizeX);
wrapperCopy.setTileSizeY(tileSizeY);
return wrapperCopy;
origin: ome/formats-bsd

handler = ((WriterWrapper) handler).getWriter();
origin: openmicroscopy/bioformats

handler = ((WriterWrapper) handler).getWriter();
loci.formatsWriterWrapper

Javadoc

Abstract superclass of writer logic that wraps other writers. All methods are simply delegated to the wrapped writer.

Most used methods

  • getWriter
    Gets the wrapped writer.
  • duplicateRecurse
  • getColorModel
  • getCompression
  • getFramesPerSecond
  • getTileSizeX
  • getTileSizeY
  • isInterleaved
  • setColorModel
  • setCompression
  • setFramesPerSecond
  • setInterleaved
  • setFramesPerSecond,
  • setInterleaved,
  • setTileSizeX,
  • setTileSizeY,
  • unwrap

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim 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