Lines Matching refs:hdf
20 import org.clearsilver.HDF;
28 * This class is a wrapper around the HDF C API. Many features of the C API
31 public class JniHdf implements HDF {
33 long hdfptr; // stores the C HDF* pointer
34 JniHdf root; // If this is a child HDF node, points at the root node of
43 static JniHdf cast(HDF hdf) {
44 if (!(hdf instanceof JniHdf)) {
45 throw new IllegalArgumentException("HDF object not of type JniHdf. "
47 + "related HDF and CS objects.");
49 return (JniHdf)hdf;
65 /** Constructs an HDF child node. Used by other methods in this class when
68 protected JniHdf newHdf(long hdfptr, HDF parent) {
76 // Only root nodes have ownership of the C HDF pointer, so only a root
93 /** Loads the contents of the specified HDF file from disk into the current
94 * HDF object. The loaded contents are merged with the existing contents.
102 throw new NullPointerException("HDF is closed.");
109 throw new NullPointerException("HDF is closed.");
142 /** Serializes HDF contents to a file (readable by readFile)
146 throw new NullPointerException("HDF is closed.");
151 /** Parses/loads the contents of the given string as HDF into the current
152 * HDF object. The loaded contents are merged with the existing contents.
156 throw new NullPointerException("HDF is closed.");
161 /** Serializes HDF contents to a string (readable by readString)
165 throw new NullPointerException("HDF is closed.");
170 /** Retrieves the integer value at the specified path in this HDF node's
175 throw new NullPointerException("HDF is closed.");
180 /** Retrieves the value at the specified path in this HDF node's subtree.
184 throw new NullPointerException("HDF is closed.");
189 /** Sets the value at the specified path in this HDF node's subtree. */
192 throw new NullPointerException("HDF is closed.");
200 throw new NullPointerException("HDF is closed.");
205 /** Links the src hdf name to the dest. */
208 throw new NullPointerException("HDF is closed.");
216 throw new NullPointerException("HDF is closed.");
265 throw new NullPointerException("HDF is closed.");
279 /** Retrieves the HDF object that is the root of the subtree at hdfpath, or
283 throw new NullPointerException("HDF is closed.");
292 /** Retrieves the HDF for the first child of the root of the subtree
297 throw new NullPointerException("HDF is closed.");
312 public boolean belongsToSameRoot(HDF hdf) {
313 JniHdf jniHdf = cast(hdf);
317 /** Retrieves the HDF object that is the root of the subtree at
321 throw new NullPointerException("HDF is closed.");
335 /** Returns the name of this HDF node. The root node has no name, so
339 throw new NullPointerException("HDF is closed.");
344 /** Returns the value of this HDF node, or null if this node has no value.
348 throw new NullPointerException("HDF is closed.");
353 /** Returns the child of this HDF node, or null if there is no child.
354 * Use this in conjunction with objNext to walk the HDF tree. Every node
359 throw new NullPointerException("HDF is closed.");
368 /** Returns the next sibling of this HDF node, or null if there is no next
369 * sibling. Use this in conjunction with objChild to walk the HDF tree.
374 throw new NullPointerException("HDF is closed.");
383 public void copy(String hdfpath, HDF src) {
386 throw new NullPointerException("HDF is closed.");
392 * Generates a string representing the content of the HDF tree rooted at
397 throw new NullPointerException("HDF is closed.");