All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adgear.anoa.write.ProtobufByteStringWriter Maven / Gradle / Ivy

package com.adgear.anoa.write;

import com.google.protobuf.ByteString;

import com.fasterxml.jackson.core.JsonGenerator;

import java.io.IOException;

class ProtobufByteStringWriter extends AbstractWriter {

  static private ByteBufferWriter byteBufferWriter = new ByteBufferWriter();

  @Override
  void write(ByteString byteString, JsonGenerator jacksonGenerator)
      throws IOException {
    byteBufferWriter.write(byteString.asReadOnlyByteBuffer(), jacksonGenerator);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy