Jackson Annotations Source Code

Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".

Jackson Annotations Source Code files are provided in the source packge (jackson-annotations-2.12.4-sources.jar). You can download it at Jackson Maven Website.

You can also browse Jackson Annotations Source Code below:

✍: FYIcenter.com


package com.fasterxml.jackson.databind.util;

import java.io.*;
import java.nio.ByteBuffer;

 * Simple {@link OutputStream} implementation that appends content
 * written in given {@link ByteBuffer} instance.
public class ByteBufferBackedOutputStream extends OutputStream {
    protected final ByteBuffer _b;

    public ByteBufferBackedOutputStream(ByteBuffer buf) { _b = buf; }

    @Override public void write(int b) throws IOException { _b.put((byte) b); }
    @Override public void write(byte[] bytes, int off, int len) throws IOException { _b.put(bytes, off, len); }



⇒ Jackson Dataformat Extensions

⇐ Jackson Data Binding Source Code

⇑ Downloading and Reviewing jackson-*.jar

⇑⇑ Jackson - Java JSON library

2022-02-19, 36207👍, 0💬