Skip to content

Commit d24a8ca

Browse files
authored
Update BinaryImporter.java
1 parent b71ef59 commit d24a8ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

jme3-core/src/plugins/java/com/jme3/export/binary/BinaryImporter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,15 @@ public InputCapsule getCapsule(Savable id) {
382382
return capsuleTable.get(id);
383383
}
384384

385-
private String readString(InputStream is, int length) throws IOException {
385+
protected String readString(InputStream f, int length) throws IOException {
386386
byte[] data = new byte[length];
387-
for (int j = 0; j < length; j++) {
388-
data[j] = (byte) is.read();
387+
for(int j = 0; j < length; j++) {
388+
data[j] = (byte)f.read();
389389
}
390390
return new String(data);
391391
}
392392

393-
private String readString(int length, int offset) {
393+
protected String readString(int length, int offset) throws IOException {
394394
byte[] data = new byte[length];
395395
for (int j = 0; j < length; j++) {
396396
data[j] = dataArray[j + offset];

0 commit comments

Comments
 (0)