Logo Search packages:      
Sourcecode: jhdf version File versions  Download package

void ncsa::hdf::object::ScalarDS::clearData (  )  [inline, inherited]

Clears the data buffer in memory and to force the next read() to load data from file.

The function read() loads data from file into memory only if the data is not read. If data is already in memory, read() just returns the memory buffer. Sometimes we want to force read() to re-read data from file. For example, when the selection is changed, we need to re-read the data.

clearData() clears the current memory buffer and force the read() to load the data from file.

See also:


Reimplemented from ncsa::hdf::object::Dataset.

Definition at line 155 of file ScalarDS.java.

References ncsa::hdf::object::ScalarDS::unsignedConverted.

Referenced by ncsa::hdf::view::DefaultTableView::dispose(), ncsa::hdf::view::DefaultImageView::dispose(), ncsa::hdf::view::DefaultImageView::getTrueColorImage(), ncsa::hdf::object::ScalarDS::setEnumConverted(), test::object::TestH5Object::test_HDF5ScalarDS_str(), test::unittests::H5ScalarDSTest::testH5ScalarDSFileFormatStringString(), test::unittests::H5ScalarDSTest::testH5ScalarDSFileFormatStringStringLongArray(), test::unittests::H5ScalarDSTest::testReadByRow(), test::unittests::H5ScalarDSTest::testWriteObject(), and test::unittests::H5ScalarDSTest::testWriteSubset().

        unsignedConverted = false;

Generated by  Doxygen 1.6.0   Back to index