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

com.amazon.ion.impl.bin.package-info Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2007-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

/**
 * Provides the implementation for the second-generation Ion binary implementation.
 * At this time, this is limited to a binary {@link com.amazon.ion.IonWriter}.
 *
 * 

* This package limits most of its APIs to package-level access, the public API of note is contained within * the {@link com.amazon.ion.impl.bin._Private_IonManagedBinaryWriterBuilder} which builds instances of * {@link com.amazon.ion.impl.bin.IonManagedBinaryWriter}. See the below section for what Managed means * in this context. * *

Block API

* A generalized interface for blocks of heap memory are provided via the {@link com.amazon.ion.impl.bin.Block} API. * There are two factory type APIs to actually get a {@link com.amazon.ion.impl.bin.Block} instance: * {@link com.amazon.ion.impl.bin.BlockAllocator} which vend blocks of a particular fixed size * and {@link com.amazon.ion.impl.bin.BlockAllocatorProvider} which creates {@link com.amazon.ion.impl.bin.BlockAllocator} * instances. *

* The primary reason for this level of indirection is flexibility for the underlying implementations of {@link com.amazon.ion.impl.bin.Block} * and {@link com.amazon.ion.impl.bin.BlockAllocator}. These APIs are not required to be thread-safe, whereas * {@link com.amazon.ion.impl.bin.BlockAllocatorProvider} is required to be thread-safe. *

* The APIs for {@link com.amazon.ion.impl.bin.BlockAllocator} and {@link com.amazon.ion.impl.bin.Block} * follow the resource pattern (similar in principle to I/O streams), and should be closed when no longer needed * to allow implementation resources to be released or re-used. * *

Raw Binary Ion Writer

* The {@link com.amazon.ion.impl.bin.IonRawBinaryWriter} deals with the low-level encoding considerations of the * Ion format. The {@link com.amazon.ion.impl.bin.WriteBuffer} is used closely with this implementation to * deal with the Ion sub-field encodings (e.g. VarInt, VarUInt, and UTF-8). * *

Managed Binary Ion Writer

* The {@link com.amazon.ion.impl.bin.IonManagedBinaryWriter} is layered on top of the {@link com.amazon.ion.impl.bin.IonRawBinaryWriter}. * In particular, it intercepts symbol, annotation, field names and handles the mechanics of symbol table management * transparently to the user. */ package com.amazon.ion.impl.bin;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy