@@ -59,7 +59,7 @@ public class HdfFileReader implements HdfDataFile {
5959 * The file allocation manager for tracking storage blocks.
6060 */
6161 private HdfSuperblock superblock ;
62- private HdfBTree bTree ;
62+ private HdfTree bTree ;
6363
6464 /**
6565 * Constructs an HdfFileReader for reading an HDF5 file.
@@ -109,7 +109,7 @@ public HdfFileReader readFile() throws Exception {
109109 String groupName = localHeap .stringAtOffset (rootGroupSymbolTableEntry .getLinkNameOffset ());
110110 // set BTree
111111 HdfGroup groupObject = new HdfGroup (groupName , objectHeader , null , null );
112- bTree = new HdfBTree (groupObject );
112+ bTree = new HdfTree (groupObject );
113113 // recurse through infrastructure
114114 readInfrastructure (groupObject , localHeap , groupBTree );
115115
@@ -262,7 +262,7 @@ public <T extends HdfDataObject> Optional<T> getHdfDataObject(String path, Class
262262 HdfGroup currentGroup = bTree .getRoot ();
263263 int compIndex = 0 ;
264264 while (currentGroup != null ) {
265- Optional <HdfBTreeNode > child = currentGroup .findChildByName (components [compIndex ++]);
265+ Optional <HdfTreeNode > child = currentGroup .findChildByName (components [compIndex ++]);
266266 if ( child .isEmpty () ) {
267267 return Optional .empty ();
268268 } else if (compIndex == components .length && clazz .isAssignableFrom (child .get ().getDataObject ().getClass ())) {
@@ -381,11 +381,11 @@ public static HdfSuperblock readSuperblockFromSeekableByteChannel(SeekableByteCh
381381 }
382382
383383 /**
384- * Reads an HdfBTree from a file channel.
384+ * Reads an HdfTree from a file channel.
385385 *
386386 * @param fileChannel the file channel to read from
387387 * @param hdfDataFile the HDF5 file context
388- * @return the constructed HdfBTree instance
388+ * @return the constructed HdfTree instance
389389 * @throws IOException if an I/O error occurs or the B-Tree data is invalid
390390 */
391391 public static HdfBTreeV1 readBTreeFromSeekableByteChannel (
@@ -397,13 +397,13 @@ public static HdfBTreeV1 readBTreeFromSeekableByteChannel(
397397 }
398398
399399 /**
400- * Recursively reads an HdfBTree from a file channel, handling cycles.
400+ * Recursively reads an HdfTree from a file channel, handling cycles.
401401 *
402402 * @param fileChannel the file channel to read from
403403 * @param nodeAddress the address of the current node
404404 * @param visitedNodes a map of visited node addresses to detect cycles
405405 * @param hdfDataFile the HDF5 file context
406- * @return the constructed HdfBTree instance
406+ * @return the constructed HdfTree instance
407407 * @throws IOException if an I/O error occurs or the B-Tree data is invalid
408408 */
409409 private static HdfBTreeV1 readFromSeekableByteChannelRecursive (SeekableByteChannel fileChannel ,
@@ -891,7 +891,7 @@ public HdfSuperblock getSuperblock() {
891891 }
892892
893893 @ Override
894- public HdfBTree getBTree () {
894+ public HdfTree getBTree () {
895895 return bTree ;
896896 }
897897
0 commit comments