HyCodeYourTale
classpublicPriority 3

RawJsonReader

com.hypixel.hytale.codec.util.RawJsonReader

implements AutoCloseable

75

Methods

75

Public Methods

12

Fields

2

Constructors

Constants

intBUFFER_GROWTH= 1048576
intDEFAULT_CHAR_BUFFER_SIZE= 32768
intERROR_LINES_BUFFER= 10
intMIN_CHAR_BUFFER_READ= 16384
ThreadLocal<char[]>READ_BUFFER= ThreadLocal.withInitial(() -> new char[131072])
intUNMARKED= -1

Constructors

public
RawJsonReader(char[] preFilledBuffer)
public
RawJsonReader(Reader in, char[] buffer)

Methods

Public Methods (75)

public
char[] cloneMark()
public
void close()

throws IOException

@Override
public
char[] closeAndTakeBuffer()

throws IOException

public
void consumeIgnoreCase(String str, int start)

throws IOException

public
void consumeWhiteSpace()

throws IOException

publicstatic
boolean equalsIgnoreCase(char c1, char c2)
public
void expect(char expect)

throws IOException

public
void expect(String str, int start)

throws IOException

public
int findOffset(int start, char value)

throws IOException

public
int findOffset(char value)

throws IOException

public
char[] getBuffer()
public
int getBufferIndex()
public
int getBufferSize()
public
int getColumn()
public
int getLine()
public
int getMarkDistance()
public
boolean isMarked()
public
void mark()

throws IOException

public
void mark(int readAheadLimit)

throws IOException

public
boolean markSupported()
public
int peek()

throws IOException

public
int peek(int n)

throws IOException

public
boolean peekFor(char consume)

throws IOException

public
int read()

throws IOException

public
boolean readBooleanValue()

throws IOException

publicstatic
BsonArray readBsonArray(RawJsonReader reader)

throws IOException

@Deprecated
publicstatic
BsonDocument readBsonDocument(RawJsonReader reader)

throws IOException

@Deprecated
publicstatic
BsonValue readBsonValue(RawJsonReader reader)

throws IOException

@Deprecated
public
byte readByteValue()

throws IOException

public
byte readByteValue(int radix)

throws IOException

public
double readDoubleValue()

throws IOException

public
float readFloatValue()

throws IOException

public
int readIntValue()

throws IOException

public
int readIntValue(int radix)

throws IOException

public
long readLongValue()

throws IOException

public
long readLongValue(int radix)

throws IOException

public
Void readNullValue()

throws IOException

@Nullable
public
String readRemainingString()

throws IOException

@Nonnull
public
String readString()

throws IOException

@Nonnull
public
long readStringPartAsLong(int count)

throws IOException

publicstatic
<T> T readSync(Path path, Codec<T> codec, HytaleLogger logger)

throws IOException

@Nullable
publicstatic
<T> T readSyncWithBak(Path path, Codec<T> codec, HytaleLogger logger)
@Nullable
public
boolean ready()

throws IOException

public
void reset()

throws IOException

publicstatic
boolean seekToKey(RawJsonReader reader, String search)

throws IOException

publicstatic
String seekToKeyFromObjectContinued(RawJsonReader reader, String search1, String search2)

throws IOException

@Nullable
publicstatic
String seekToKeyFromObjectStart(RawJsonReader reader, String search1, String search2)

throws IOException

@Nullable
public
long skip(long skip)

throws IOException

public
void skipArray()

throws IOException

public
void skipArrayContinued()

throws IOException

public
void skipBooleanValue()

throws IOException

public
void skipDoubleValue()

throws IOException

public
void skipFloatValue()

throws IOException

public
void skipIntValue()

throws IOException

public
void skipIntValue(int radix)

throws IOException

public
void skipLongValue()

throws IOException

public
void skipLongValue(int radix)

throws IOException

public
void skipNullValue()

throws IOException

public
void skipObject()

throws IOException

public
void skipObjectContinued()

throws IOException

public
void skipOrThrow(long n)

throws IOException

public
void skipRemainingString()

throws IOException

public
void skipString()

throws IOException

public
void skipValue()

throws IOException

public
String toString()
@Nonnull@Override
public
boolean tryConsume(char consume)

throws IOException

public
boolean tryConsume(String str)

throws IOException

public
boolean tryConsume(String str, int start)

throws IOException

public
boolean tryConsumeOrExpect(char consume, char expect)

throws IOException

public
int tryConsumeSome(String str, int start)

throws IOException

public
boolean tryConsumeString(String str)

throws IOException

public
void unmark()
publicstatic
void validateBsonArray(RawJsonReader reader)

throws IOException

publicstatic
void validateBsonDocument(RawJsonReader reader)

throws IOException

publicstatic
void validateBsonValue(RawJsonReader reader)

throws IOException

Fields

Private/Package Fields (12)

package-privateObject var7
privatechar[] buffer
privateint bufferIndex
privateint bufferSize
privateReader in
privateint line
privateint lineStart
privateint markIndex
privateint markLine
privateint markLineStart
privateint streamIndex
privateStringBuilder tempSb

Related Classes