22// (c) 2019-2026
33// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt
44
5- package de .mossgrabers .convertwithmoss .format .akai .s1000 ;
5+ package de .mossgrabers .convertwithmoss .format .akai .s1000s3000 ;
66
77import java .io .IOException ;
88import java .util .ArrayList ;
@@ -34,34 +34,6 @@ public AkaiPartition (final AkaiDiskImage disk, final int partitionIndex) throws
3434 {
3535 this .name = String .valueOf ((char ) ('A' + partitionIndex ));
3636
37- this .listVolumes (disk );
38- }
39-
40-
41- /**
42- * Get the name of the partition.
43- *
44- * @return A, B, C, ...
45- */
46- public String getName ()
47- {
48- return this .name ;
49- }
50-
51-
52- /**
53- * Get all volumes of the partition.
54- *
55- * @return The volumes
56- */
57- public List <AkaiVolume > getVolumes ()
58- {
59- return this .volumes ;
60- }
61-
62-
63- private void listVolumes (final AkaiDiskImage disk ) throws IOException
64- {
6537 for (int i = 0 ; i < AKAI_MAX_DIR_ENTRIES ; i ++)
6638 {
6739 final AkaiDirEntry dirEntry = new AkaiDirEntry ();
@@ -73,7 +45,6 @@ private void listVolumes (final AkaiDiskImage disk) throws IOException
7345 {
7446 case AKAI_VOLUME_TYPE_S1000 :
7547 case AKAI_VOLUME_TYPE_S3000 :
76- // TODO Test S3000
7748 final AkaiVolume volume = new AkaiVolume (disk , this , dirEntry );
7849 if (!volume .isEmpty ())
7950 this .volumes .add (volume );
@@ -84,10 +55,31 @@ private void listVolumes (final AkaiDiskImage disk) throws IOException
8455 break ;
8556
8657 default :
87- // TODO remove
88- System .out .println ("Unsupported directory entry type: " + type + " - " + dirEntry .getName ());
58+ // Ignore
8959 break ;
9060 }
9161 }
9262 }
63+
64+
65+ /**
66+ * Get the name of the partition.
67+ *
68+ * @return A, B, C, ...
69+ */
70+ public String getName ()
71+ {
72+ return this .name ;
73+ }
74+
75+
76+ /**
77+ * Get all volumes of the partition.
78+ *
79+ * @return The volumes
80+ */
81+ public List <AkaiVolume > getVolumes ()
82+ {
83+ return this .volumes ;
84+ }
9385}
0 commit comments