Skip to content

Commit abe9c65

Browse files
committed
Update NBTCodec javadoc: change "Loads" to "Reads"
1 parent 939c124 commit abe9c65

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎src/main/java/org/glavo/nbt/io/NBTCodec.java‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,74 +47,74 @@ static NBTCodec.Builder newBuilder() {
4747
@Contract(pure = true)
4848
MinecraftEdition getEdition();
4949

50-
/// Loads a NBT tag from a byte array.
50+
/// Reads a NBT tag from a byte array.
5151
@Contract(pure = true)
5252
Tag readTag(byte[] array) throws IOException;
5353

54-
/// Loads the specified NBT tag from a byte array.
54+
/// Reads the specified NBT tag from a byte array.
5555
@Contract(pure = true)
5656
default <T extends Tag> T readTag(byte[] array, Class<T> tagClass) throws IOException {
5757
return check(readTag(array), tagClass);
5858
}
5959

60-
/// Loads a NBT tag from a byte array with the specified offset and length.
60+
/// Reads a NBT tag from a byte array with the specified offset and length.
6161
@Contract(pure = true)
6262
default Tag readTag(byte[] array, int offset, int length) throws IOException {
6363
return readTag(ByteBuffer.wrap(array, offset, length));
6464
}
6565

66-
/// Loads the specified NBT tag from a byte array with the specified offset and length.
66+
/// Reads the specified NBT tag from a byte array with the specified offset and length.
6767
@Contract(pure = true)
6868
default <T extends Tag> T readTag(byte[] array, int offset, int length, Class<T> tagClass) throws IOException {
6969
return check(readTag(array, offset, length), tagClass);
7070
}
7171

72-
/// Loads a NBT tag from a byte buffer.
72+
/// Reads a NBT tag from a byte buffer.
7373
///
7474
/// This method does not change the position and the limit of the buffer.
7575
@Contract(pure = true)
7676
Tag readTag(ByteBuffer buffer) throws IOException;
7777

78-
/// Loads the specified NBT tag from a byte buffer.
78+
/// Reads the specified NBT tag from a byte buffer.
7979
///
8080
/// This method does not change the position and the limit of the buffer.
8181
@Contract(pure = true)
8282
default <T extends Tag> T readTag(ByteBuffer buffer, Class<T> tagClass) throws IOException {
8383
return check(readTag(buffer), tagClass);
8484
}
8585

86-
/// Loads a NBT tag from an input stream.
86+
/// Reads a NBT tag from an input stream.
8787
///
8888
/// After this method is called, the state of the `inputStream` is undefined.
8989
@Contract(mutates = "param1")
9090
Tag readTag(InputStream inputStream) throws IOException;
9191

92-
/// Loads the specified NBT tag from an input stream.
92+
/// Reads the specified NBT tag from an input stream.
9393
///
9494
/// After this method is called, the state of the `inputStream` is undefined.
9595
@Contract(mutates = "param1")
9696
default <T extends Tag> T readTag(InputStream inputStream, Class<T> tagClass) throws IOException {
9797
return check(readTag(inputStream), tagClass);
9898
}
9999

100-
/// Loads a NBT tag from a readable byte channel.
100+
/// Reads a NBT tag from a readable byte channel.
101101
///
102102
/// After this method is called, the state of the `channel` is undefined.
103103
@Contract(mutates = "param1")
104104
Tag readTag(ReadableByteChannel channel) throws IOException;
105105

106-
/// Loads the specified NBT tag from a readable byte channel.
106+
/// Reads the specified NBT tag from a readable byte channel.
107107
///
108108
/// After this method is called, the state of the `channel` is undefined.
109109
@Contract(mutates = "param1")
110110
default <T extends Tag> T readTag(ReadableByteChannel channel, Class<T> tagClass) throws IOException {
111111
return check(readTag(channel), tagClass);
112112
}
113113

114-
/// Loads a NBT tag from a file.
114+
/// Reads a NBT tag from a file.
115115
Tag readTag(Path path) throws IOException;
116116

117-
/// Loads the specified NBT tag from a file.
117+
/// Reads the specified NBT tag from a file.
118118
default <T extends Tag> T readTag(Path path, Class<T> tagClass) throws IOException {
119119
return check(readTag(path), tagClass);
120120
}

0 commit comments

Comments
 (0)