@@ -30,6 +30,7 @@ public static void runProperties() {
30
30
properties .setProperty ("varInt21" , Integer .toString (3 ));
31
31
properties .setProperty ("varInt" , Integer .toString (5 ));
32
32
properties .setProperty ("varLong" , Integer .toString (10 ));
33
+ properties .setProperty ("stringSize" , Integer .toString (32767 ));
33
34
checkVariable ("chunkPacketData" , Integer .toString (2097152 ));
34
35
properties .setProperty ("timeout" , Integer .toString (90 ));
35
36
@@ -45,6 +46,7 @@ public static void runProperties() {
45
46
checkVariable ("varInt21" , Integer .toString (3 ));
46
47
checkVariable ("varInt" , Integer .toString (5 ));
47
48
checkVariable ("varLong" , Integer .toString (10 ));
49
+ checkVariable ("stringSize" , Integer .toString (32767 ));
48
50
checkVariable ("chunkPacketData" , Integer .toString (2097152 ));
49
51
checkVariable ("timeout" , Integer .toString (90 ));
50
52
save (propertiesFile );
@@ -88,6 +90,11 @@ public static int getVarLong() {
88
90
return getUnlimitedPacketSize () ? (Integer .MAX_VALUE / 2 - 1 ) : Integer .parseInt (properties .getProperty ("varLong" ));
89
91
}
90
92
93
+ public static int getStringSize () {
94
+ if (properties == null ) runProperties ();
95
+ return getUnlimitedPacketSize () ? Integer .MAX_VALUE : Integer .parseInt (properties .getProperty ("stringSize" ));
96
+ }
97
+
91
98
public static int getChunkPacketData () {
92
99
if (properties == null ) runProperties ();
93
100
return getUnlimitedPacketSize () ? Integer .MAX_VALUE : Integer .parseInt (properties .getProperty ("chunkPacketData" ));
0 commit comments