public class TypeParser extends Object
unit := compoundsFor example:compounds := { compound }
compound := compound-name { members } [;]
members := { member }
member := type member-name ;
type := scalar-type | array-type
array-type := element-type [element-count] { [element-count] }
element-type := scalar-type
element-count := integer | member-reference
scalar-type := simple-type | compound-name
simple-type := byte | ubyte | short | ushort | int | uint | long | float | double
member-reference := $member-name (member must be an integer type)
compound-name := name
member-name := name
name := java-identifier | any character sequence within two enclosing " (double quote)
Dataset { int lineCount; Scanline[$lineCount] scanlines; }; Scanline { int flags; double[512] data; };
Modifier and Type | Field and Description |
---|---|
static SimpleType[] |
SIMPLE_TYPES |
Modifier and Type | Method and Description |
---|---|
CompoundType[] |
parseCompoundTypes() |
static CompoundType[] |
parseUnit(Reader reader) |
public static final SimpleType[] SIMPLE_TYPES
public static CompoundType[] parseUnit(Reader reader) throws IOException, ParseException
IOException
ParseException
public CompoundType[] parseCompoundTypes() throws IOException, ParseException
IOException
ParseException
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.