Package net.glowstone.util.nbt
Class NbtReadLimiter
java.lang.Object
net.glowstone.util.nbt.NbtReadLimiter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(int length) Increments the read-length count, and throws an exception if the limit is exceeded.
-
Field Details
-
UNLIMITED
-
-
Constructor Details
-
NbtReadLimiter
public NbtReadLimiter(long limit)
-
-
Method Details
-
read
public void read(int length) Increments the read-length count, and throws an exception if the limit is exceeded.- Parameters:
length
- the length to add to the read-length count- Throws:
IllegalStateException
- if the limit is exceeded
-