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

public final Class JarInfo

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.Properties, com.amazon.ion.IonException, .Timestamp

Provides information about this release of the ion-java library.

Field Summary

Modifier and TypeField and Description
private Timestamp
private String

Constructor Summary

AccessConstructor and Description
public
JarInfo()

Constructs a new instance that can provide build information about this library.

Method Summary

Modifier and TypeMethod and Description
public Timestamp

Returns:

null if the build time is unknown.
getBuildTime
()

Gets the time at which this package was built.

public String

Returns:

null if the package version is unknown.
getProjectVersion
()

Gets the ion-java project version of this build.

private void
private static String

Returns:

null but not empty string
nonEmptyProperty
(Properties props, String name)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ourBuildTimeback to summary
private Timestamp ourBuildTime
ourProjectVersionback to summary
private String ourProjectVersion

Constructor Detail

JarInfoback to summary
public JarInfo() throws IonException

Constructs a new instance that can provide build information about this library.

Exceptions
IonException:
if there's a problem loading the build info.

Method Detail

getBuildTimeback to summary
public Timestamp getBuildTime()

Gets the time at which this package was built.

Returns:Timestamp

null if the build time is unknown.

getProjectVersionback to summary
public String getProjectVersion()

Gets the ion-java project version of this build.

Returns:String

null if the package version is unknown.

loadBuildPropertiesback to summary
private void loadBuildProperties() throws IonException
nonEmptyPropertyback to summary
private static String nonEmptyProperty(Properties props, String name)
Returns:String

null but not empty string