congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IOServiceProvider.readToByteChannel
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: edu.ucar/cdm

/**
 * Read data from a top level Variable and send data to a WritableByteChannel. Experimental.
 *
 * @param v       a top-level Variable
 * @param section the section of data to read.
 *                There must be a Range for each Dimension in the variable, in order.
 *                Note: no nulls allowed. IOSP may not modify.
 * @param wbc     write data to this WritableByteChannel
 * @return the number of bytes written to the channel
 * @throws java.io.IOException            if read error
 * @throws ucar.ma2.InvalidRangeException if invalid section
 */
protected long readToByteChannel(ucar.nc2.Variable v, Section section, WritableByteChannel wbc)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToByteChannel(v.read(section), wbc);
 return spi.readToByteChannel(v, section, wbc);
}
origin: edu.ucar/netcdf

/**
 * Read data from a top level Variable and send data to a WritableByteChannel. Experimental.
 *
 * @param v       a top-level Variable
 * @param section the section of data to read.
 *                There must be a Range for each Dimension in the variable, in order.
 *                Note: no nulls allowed. IOSP may not modify.
 * @param wbc     write data to this WritableByteChannel
 * @return the number of bytes written to the channel
 * @throws java.io.IOException            if read error
 * @throws ucar.ma2.InvalidRangeException if invalid section
 */
protected long readToByteChannel(ucar.nc2.Variable v, Section section, WritableByteChannel wbc)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToByteChannel(v.read(section), wbc);
 return spi.readToByteChannel(v, section, wbc);
}
origin: Unidata/thredds

/**
 * Read data from a top level Variable and send data to a WritableByteChannel. Experimental.
 *
 * @param v       a top-level Variable
 * @param section the section of data to read.
 *                There must be a Range for each Dimension in the variable, in order.
 *                Note: no nulls allowed. IOSP may not modify.
 * @param wbc     write data to this WritableByteChannel
 * @return the number of bytes written to the channel
 * @throws java.io.IOException            if read error
 * @throws ucar.ma2.InvalidRangeException if invalid section
 */
protected long readToByteChannel(ucar.nc2.Variable v, Section section, WritableByteChannel wbc)
    throws java.io.IOException, ucar.ma2.InvalidRangeException {
 //if (unlocked)
 //  throw new IllegalStateException("File is unlocked - cannot use");
 if ((spi == null) || v.hasCachedData())
  return IospHelper.copyToByteChannel(v.read(section), wbc);
 return spi.readToByteChannel(v, section, wbc);
}
ucar.nc2.iospIOServiceProviderreadToByteChannel

Javadoc

Read data from a top level Variable and send data to a WritableByteChannel. Must be in big-endian order.

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
  • readToOutputStream
  • sendIospMessage
    A way to communicate arbitrary information to an iosp.
  • readToOutputStream,
  • sendIospMessage,
  • syncExtend,
  • toStringDebug,
  • reacquire,
  • release

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Permission (java.security)
    Legacy security code; do not use.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Notification (javax.management)
  • JLabel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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