|
|
@ -1,5 +1,6 @@ |
|
|
|
package mightypork.utils.files.ion; |
|
|
|
package mightypork.utils.files.ion; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.OutputStream; |
|
|
|
import java.io.OutputStream; |
|
|
@ -22,6 +23,7 @@ public abstract class AbstractIonList<T> extends ArrayList<T> implements Ionizab |
|
|
|
byte b = StreamUtils.readByte(in); |
|
|
|
byte b = StreamUtils.readByte(in); |
|
|
|
|
|
|
|
|
|
|
|
if (b == IonMarks.ENTRY) { |
|
|
|
if (b == IonMarks.ENTRY) { |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
T value = (T) Ion.readObject(in); |
|
|
|
T value = (T) Ion.readObject(in); |
|
|
|
add(value); |
|
|
|
add(value); |
|
|
|
} else if (b == IonMarks.END) { |
|
|
|
} else if (b == IonMarks.END) { |
|
|
|