software.amazon.ion.impl.PrivateIonSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ion-java Show documentation
Show all versions of ion-java Show documentation
A Java implementation of the Amazon Ion data notation.
/*
* Copyright 2010-2016 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://aws.amazon.com/apache2.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.
*/
package software.amazon.ion.impl;
import java.io.InputStream;
import java.io.Reader;
import java.util.Iterator;
import software.amazon.ion.IonContainer;
import software.amazon.ion.IonReader;
import software.amazon.ion.IonStruct;
import software.amazon.ion.IonSystem;
import software.amazon.ion.IonValue;
import software.amazon.ion.IonWriter;
import software.amazon.ion.SymbolTable;
import software.amazon.ion.system.IonSystemBuilder;
/**
* @deprecated This is an internal API that is subject to change without notice.
*/
@Deprecated
public interface PrivateIonSystem
extends IonSystem
{
public SymbolTable newSharedSymbolTable(IonStruct ionRep);
/**
* TODO Must correct amzn/ion-java#63 before exposing this or using from public API.
*/
public Iterator systemIterate(String ionText);
/**
* TODO Must correct amzn/ion-java#63 before exposing this or using from public API.
*/
public Iterator systemIterate(Reader ionText);
public Iterator systemIterate(byte[] ionData);
/**
* TODO Must correct amzn/ion-java#63 before exposing this or using from public API.
*/
public Iterator systemIterate(InputStream ionData);
public IonReader newSystemReader(Reader ionText);
public IonReader newSystemReader(byte[] ionData);
public IonReader newSystemReader(byte[] ionData, int offset, int len);
public IonReader newSystemReader(String ionText);
public IonReader newSystemReader(InputStream ionData);
public IonReader newSystemReader(IonValue value);
public IonWriter newTreeWriter(IonContainer container);
public IonWriter newTreeSystemWriter(IonContainer container);
public boolean valueIsSharedSymbolTable(IonValue value);
/**
* Indicates whether writers built by this system may attempt to optimize
* {@link IonWriter#writeValue(IonReader)} by copying raw source data.
*
* @see IonSystemBuilder#isStreamCopyOptimized()
*/
public boolean isStreamCopyOptimized();
}