Top Description Fields Constructors Methods
com.amazon.ion.apps

pack-priv abstract Class BaseApp

extends Object
Class Inheritance
Known Direct Subclasses
com.amazon.ion.apps.EncodeApp, com.amazon.ion.apps.PrintApp, com.amazon.ion.apps.SymtabApp
Imports
com.amazon.ion.IonCatalog, .IonException, .IonReader, .IonSystem, .SymbolTable, com.amazon.ion.impl._Private_IonConstants, com.amazon.ion.system.IonSystemBuilder, .SimpleCatalog, java.io.BufferedInputStream, .ByteArrayOutputStream, .File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream

ion_encode ion_print

Field Summary

Modifier and TypeField and Description
protected SimpleCatalog
protected IonSystem

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
doMain(String[] args)

protected SymbolTable
protected static byte[]
loadAsByteArray(InputStream
doesn't need to be buffered; this method will read in bulk.
in
)

protected static byte[]
protected void
loadCatalog(String catalogPath)

protected void
logDebug(String message)

protected boolean
optionsAreValid(String[] filePaths)

protected void
process(File file)

protected void
process(File inputFile, IonReader reader)

protected void
protected boolean
protected void
processFiles(String[] filePaths)

protected int
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myCatalogback to summary
protected SimpleCatalog myCatalog
mySystemback to summary
protected IonSystem mySystem

Constructor Detail

BaseAppback to summary
pack-priv BaseApp()

Method Detail

doMainback to summary
public void doMain(String[] args)
getLatestSharedSymtabback to summary
protected SymbolTable getLatestSharedSymtab(String name)
loadAsByteArrayback to summary
protected static byte[] loadAsByteArray(InputStream in) throws IOException
Parameters
in:InputStream

doesn't need to be buffered; this method will read in bulk.

loadAsByteArrayback to summary
protected static byte[] loadAsByteArray(File file) throws FileNotFoundException, IOException
loadCatalogback to summary
protected void loadCatalog(String catalogPath)
logDebugback to summary
protected void logDebug(String message)
optionsAreValidback to summary
protected boolean optionsAreValid(String[] filePaths)
processback to summary
protected void process(File file) throws IOException, IonException
processback to summary
protected void process(File inputFile, IonReader reader) throws IOException, IonException
processback to summary
protected void process(IonReader reader) throws IOException, IonException
processFileback to summary
protected boolean processFile(String path)
processFilesback to summary
protected void processFiles(String[] filePaths)
processOptionsback to summary
protected int processOptions(String[] args)
processStdInback to summary
protected void processStdIn()