Jackson Core Source Code

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

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

You can also browse Jackson Core Source Code below:

✍: FYIcenter.com

com/fasterxml/jackson/core/io/DataOutputAsStream.java

package com.fasterxml.jackson.core.io;

import java.io.*;

/**
 * Helper class to support use of {@link DataOutput} for output, directly,
 * without caller having to provide for implementation.
 *
 * @since 2.8
 */
public class DataOutputAsStream extends OutputStream
{
    protected final DataOutput _output;

    public DataOutputAsStream(DataOutput out) {
        super();
        _output = out;
    }

    @Override
    public void write(int b) throws IOException {
        _output.write(b);
    }

    @Override
    public void write(byte b[]) throws IOException {
        _output.write(b, 0, b.length);
    }

    @Override
    public void write(byte b[], int offset, int length) throws IOException {
        _output.write(b, offset, length);
    }

    // These are no-ops, base class impl works fine

    /*
    @Override
    public void flush() throws IOException { }

    @Override
    public void close() throws IOException { }
    */
}

com/fasterxml/jackson/core/io/DataOutputAsStream.java

 

Or download all of them as a single archive file:

File name: jackson-core-2.14.0-sources.jar
File size: 497693 bytes
Release date: 2022-11-05
Download 

 

Download and Install Jackson Binary Package

What Is Jackson

Downloading and Reviewing jackson-*.jar

⇑⇑ Jackson - Java JSON library

2016-02-03, 57116👍, 1💬