public T mergeUnframed(byte[] data) throws InvalidProtocolBufferException { return mergeUnframed(new Buffer(data)); }
public T mergeUnframed(byte[] data) throws InvalidProtocolBufferException { return mergeUnframed(new Buffer(data)); }
public T mergeUnframed(byte[] data) throws InvalidProtocolBufferException { return mergeUnframed(new Buffer(data)); }
public T mergeFramed(InputStream input) throws IOException { int length = readRawVarint32(input); byte[] data = new byte[length]; int pos = 0; while (pos < length) { int r = input.read(data, pos, length - pos); if (r < 0) { throw new InvalidProtocolBufferException("Input stream ended before a full message frame could be read."); } pos += r; } return mergeUnframed(data); }
public T mergeFramed(InputStream input) throws IOException { int length = readRawVarint32(input); byte[] data = new byte[length]; int pos = 0; while (pos < length) { int r = input.read(data, pos, length - pos); if (r < 0) { throw new InvalidProtocolBufferException("Input stream ended before a full message frame could be read."); } pos += r; } return mergeUnframed(data); }
public T mergeFramed(InputStream input) throws IOException { int length = readRawVarint32(input); byte[] data = new byte[length]; int pos = 0; while (pos < length) { int r = input.read(data, pos, length - pos); if (r < 0) { throw new InvalidProtocolBufferException("Input stream ended before a full message frame could be read."); } pos += r; } return mergeUnframed(data); }
static protected <T extends BaseMessage> T readGroup(CodedInputStream input, int tag, T group) throws IOException { group.mergeUnframed(input); input.checkLastTagWas(makeTag(tag, WIRETYPE_END_GROUP)); return group; }
static protected <T extends BaseMessage> T readGroup(CodedInputStream input, int tag, T group) throws IOException { group.mergeUnframed(input); input.checkLastTagWas(makeTag(tag, WIRETYPE_END_GROUP)); return group; }
public T mergeUnframed(InputStream input) throws IOException { CodedInputStream codedInput = new CodedInputStream(input); mergeUnframed(codedInput); return getThis(); }
public T mergeUnframed(InputStream input) throws IOException { CodedInputStream codedInput = new CodedInputStream(input); mergeUnframed(codedInput); return getThis(); }
public T mergeUnframed(InputStream input) throws IOException { CodedInputStream codedInput = new CodedInputStream(input); mergeUnframed(codedInput); return getThis(); }
static protected <T extends BaseMessage> T readGroup(CodedInputStream input, int tag, T group) throws IOException { group.mergeUnframed(input); input.checkLastTagWas(makeTag(tag, WIRETYPE_END_GROUP)); return group; }
public T mergeUnframed(Buffer data) throws InvalidProtocolBufferException { try { CodedInputStream input = new CodedInputStream(data); mergeUnframed(input); input.checkLastTagWas(0); return getThis(); } catch (InvalidProtocolBufferException e) { throw e; } catch (IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }
public T mergeUnframed(Buffer data) throws InvalidProtocolBufferException { try { CodedInputStream input = new CodedInputStream(data); mergeUnframed(input); input.checkLastTagWas(0); return getThis(); } catch (InvalidProtocolBufferException e) { throw e; } catch (IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }
public T mergeUnframed(Buffer data) throws InvalidProtocolBufferException { try { CodedInputStream input = new CodedInputStream(data); mergeUnframed(input); input.checkLastTagWas(0); return getThis(); } catch (InvalidProtocolBufferException e) { throw e; } catch (IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }
public T mergeFramed(CodedInputStream input) throws IOException { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); T rc = mergeUnframed(input); input.checkLastTagWas(0); input.popLimit(oldLimit); return rc; }
public T mergeFramed(CodedInputStream input) throws IOException { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); T rc = mergeUnframed(input); input.checkLastTagWas(0); input.popLimit(oldLimit); return rc; }
public T mergeFramed(CodedInputStream input) throws IOException { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); T rc = mergeUnframed(input); input.checkLastTagWas(0); input.popLimit(oldLimit); return rc; }