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

How to use
readToOutputStream
method
in
ucar.nc2.iosp.IOServiceProvider

Best Java code snippets using ucar.nc2.iosp.IOServiceProvider.readToOutputStream (Showing top 3 results out of 315)

origin: edu.ucar/netcdf

protected long readToOutputStream(ucar.nc2.Variable v, Section section, OutputStream out)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToOutputStream(v.read(section), out);
 return spi.readToOutputStream(v, section, out);
}
origin: edu.ucar/cdm

protected long readToOutputStream(ucar.nc2.Variable v, Section section, OutputStream out)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToOutputStream(v.read(section), out);
 return spi.readToOutputStream(v, section, out);
}
origin: Unidata/thredds

protected long readToOutputStream(ucar.nc2.Variable v, Section section, OutputStream out)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToOutputStream(v.read(section), out);
 return spi.readToOutputStream(v, section, out);
}
ucar.nc2.iospIOServiceProviderreadToOutputStream

Popular methods of IOServiceProvider

  • getFileTypeId
    Get a unique id for this file type.
  • close
    Close the file. It is the IOServiceProvider's job to close the file (even though it didnt open it),
  • getDetailInfo
    Show debug / underlying implementation details
  • getFileTypeDescription
    Get a human-readable description for this file type.
  • getFileTypeVersion
    Get the version of this file type.
  • getStructureIterator
    Get the structure iterator. iosps with top level sequences must override
  • isValidFile
    Check if this is a valid file for this IOServiceProvider. You must make this method thread safe, ie
  • open
    Open existing file, and populate ncfile with it. This method is only called by the NetcdfFile constr
  • readData
    Read data from a top level Variable and return a memory resident Array. This Array has the same elem
  • readSection
    Allows reading sections of nested variables
  • readToByteChannel
    Read data from a top level Variable and send data to a WritableByteChannel. Must be in big-endian or
  • sendIospMessage
    A way to communicate arbitrary information to an iosp.
  • readToByteChannel,
  • sendIospMessage,
  • syncExtend,
  • toStringDebug,
  • reacquire,
  • release

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • JFileChooser (javax.swing)
  • 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