public static class NpzFile.Reader
A reader for NPZ format.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
NpzFile.Reader |
copy(java.nio.file.Path path)
A reader for NPZ format.
|
boolean |
equals(java.lang.Object p) |
NpyArray |
get(java.lang.String name,
int step)
Returns an array for a given name.
|
int |
hashCode() |
java.util.List<org.jetbrains.bio.npy.NpzEntry> |
introspect()
Returns a mapping from array names to the corresponding
scalar types in Java.
|
java.lang.String |
toString() |
@NotNull public java.util.List<org.jetbrains.bio.npy.NpzEntry> introspect()
Returns a mapping from array names to the corresponding scalar types in Java.
@NotNull public NpyArray get(@NotNull java.lang.String name, int step)
Returns an array for a given name.
The caller is responsible for casting the resulting array to an appropriate type.
name - array name.step - amount of bytes to use for the temporary buffer, when reading the entry. Defaults to 1 << 18 to mimic NumPy behaviour.public void close()
@NotNull public NpzFile.Reader copy(@NotNull java.nio.file.Path path)
A reader for NPZ format.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)