@Override public ByteBuf resetReaderIndex() { buf.resetReaderIndex(); return this; }
@Override public ByteBuf resetReaderIndex() { buffer.resetReaderIndex(); return this; }
@Override public final ByteBuf resetReaderIndex() { buf.resetReaderIndex(); return this; }
@Override public ByteBuf resetReaderIndex() { buf.resetReaderIndex(); return this; }
@Override public void reset() throws IOException { buffer.resetReaderIndex(); }
@Override public void reset() throws IOException { buffer.resetReaderIndex(); }
@Override public ByteBuf resetReaderIndex() { buffer.resetReaderIndex(); return this; }
@Override public final ByteBuf resetReaderIndex() { buf.resetReaderIndex(); return this; }
for (int i = 0; i < buf.length; i ++) { if (!in.isReadable()) { in.resetReaderIndex(); return; in.resetReaderIndex(); return; } else {
for (int i = 0; i < buf.length; i ++) { if (!in.isReadable()) { in.resetReaderIndex(); return; in.resetReaderIndex(); return; } else {
responseContent.skipBytes(openArrayPos + 1); } else { responseContent.resetReaderIndex(); if (lastChunk == true) { throw new IllegalStateException("Unable to decide between raw and objects with content " + responseContent.toString(CHARSET)); } else { responseContent.resetReaderIndex(); return; responseContent.resetReaderIndex();
responseContent.skipBytes(openArrayPos + 1); } else { responseContent.resetReaderIndex(); if (lastChunk == true) { throw new IllegalStateException("Unable to decide between raw and objects with content " + responseContent.toString(CHARSET)); } else { responseContent.resetReaderIndex(); return; responseContent.resetReaderIndex();
responseContent.skipBytes(openArrayPos + 1); } else { responseContent.resetReaderIndex(); if (lastChunk == true) { throw new IllegalStateException("Unable to decide between raw and objects with content " + responseContent.toString(CHARSET)); } else { responseContent.resetReaderIndex(); return; responseContent.resetReaderIndex();
responseContent.skipBytes(openArrayPos + 1); } else { responseContent.resetReaderIndex(); if (lastChunk == true) { throw new IllegalStateException("Unable to decide between raw and objects with content " + responseContent.toString(CHARSET)); } else { responseContent.resetReaderIndex(); return; responseContent.resetReaderIndex();
/** * Last before the end of the stream, we can now parse the final result status * (including full execution of the query). */ private void parseQueryStatus(boolean lastChunk) { //some sections don't always come up, unlike status. Take this chance to close said sections' observables here. querySignatureObservable.onCompleted(); queryRowObservable.onCompleted(); queryErrorObservable.onCompleted(); responseContent.markReaderIndex(); responseContent.skipBytes(findNextChar(responseContent, '"') + 1); int endStatus = findNextChar(responseContent, '"'); if (endStatus > -1) { ByteBuf resultSlice = responseContent.readSlice(endStatus); queryStatusObservable.onNext(resultSlice.toString(CHARSET)); queryStatusObservable.onCompleted(); sectionDone(); queryParsingState = transitionToNextToken(lastChunk); } else { responseContent.resetReaderIndex(); return; //need more data } }
out.readBytes(out, length); out.resetReaderIndex();
/** * Last before the end of the stream, we can now parse the final result status * (including full execution of the query). */ private void parseQueryStatus(boolean lastChunk) { //some sections don't always come up, unlike status. Take this chance to close said sections' observables here. querySignatureObservable.onCompleted(); queryRowObservable.onCompleted(); queryErrorObservable.onCompleted(); responseContent.markReaderIndex(); responseContent.skipBytes(findNextChar(responseContent, '"') + 1); int endStatus = findNextChar(responseContent, '"'); if (endStatus > -1) { ByteBuf resultSlice = responseContent.readSlice(endStatus); queryStatusObservable.onNext(resultSlice.toString(CHARSET)); queryStatusObservable.onCompleted(); sectionDone(); queryParsingState = transitionToNextToken(lastChunk); } else { responseContent.resetReaderIndex(); return; //need more data } }
/** * Last before the end of the stream, we can now parse the final result status * (including full execution of the query). */ private void parseQueryStatus(boolean lastChunk) { //some sections don't always come up, unlike status. Take this chance to close said sections' observables here. querySignatureObservable.onCompleted(); queryRowObservable.onCompleted(); queryErrorObservable.onCompleted(); responseContent.markReaderIndex(); responseContent.skipBytes(findNextChar(responseContent, '"') + 1); int endStatus = findNextChar(responseContent, '"'); if (endStatus > -1) { ByteBuf resultSlice = responseContent.readSlice(endStatus); queryStatusObservable.onNext(resultSlice.toString(CHARSET)); queryStatusObservable.onCompleted(); sectionDone(); queryParsingState = transitionToNextToken(lastChunk); } else { responseContent.resetReaderIndex(); return; //need more data } }
out.readBytes(out, length); out.resetReaderIndex();
/** * Last before the end of the stream, we can now parse the final result status * (including full execution of the query). */ private void parseQueryStatus(boolean lastChunk) { //some sections don't always come up, unlike status. Take this chance to close said sections' observables here. querySignatureObservable.onCompleted(); queryRowObservable.onCompleted(); queryErrorObservable.onCompleted(); responseContent.markReaderIndex(); responseContent.skipBytes(findNextChar(responseContent, '"') + 1); int endStatus = findNextChar(responseContent, '"'); if (endStatus > -1) { ByteBuf resultSlice = responseContent.readSlice(endStatus); queryStatusObservable.onNext(resultSlice.toString(CHARSET)); queryStatusObservable.onCompleted(); sectionDone(); queryParsingState = transitionToNextToken(lastChunk); } else { responseContent.resetReaderIndex(); return; //need more data } }