@DefaultImplementation(value=AvroClassHierarchySerializer.class) public interface ClassHierarchySerializer
Modifier and Type | Method and Description |
---|---|
ClassHierarchy |
fromByteArray(byte[] theBytes)
Deserializes a ClassHierarchy from a byte[] created with toByteArray().
|
ClassHierarchy |
fromFile(File file)
Loads a ClassHierarchy from a file created with toFile().
|
ClassHierarchy |
fromString(String theString)
Deserializes a ClassHierarchy from a String created with toString().
|
ClassHierarchy |
fromTextFile(File file)
Loads a ClassHierarchy from a text file created with toTextFile().
|
byte[] |
toByteArray(ClassHierarchy classHierarchy)
Serializes a ClassHierarchy as a byte[].
|
void |
toFile(ClassHierarchy classHierarchy,
File file)
Writes a ClassHierarchy into a file.
|
String |
toString(ClassHierarchy classHierarchy)
Serializes a ClassHierarchy as a String.
|
void |
toTextFile(ClassHierarchy classHierarchy,
File file)
Writes a ClassHierarchy into a text file.
|
void toFile(ClassHierarchy classHierarchy, File file) throws IOException
classHierarchy
- the ClassHierarchy to storefile
- the file to store the ClassHierarchyIOException
- if there is an error in the processvoid toTextFile(ClassHierarchy classHierarchy, File file) throws IOException
classHierarchy
- the ClassHierarchy to storefile
- the text file to store the ClassHierarchyIOException
- if there is an error in the processbyte[] toByteArray(ClassHierarchy classHierarchy) throws IOException
classHierarchy
- the ClassHierarchy to storeIOException
- if there is an error in the processString toString(ClassHierarchy classHierarchy) throws IOException
classHierarchy
- the ClassHierarchy to storeIOException
- if there is an error in the processClassHierarchy fromFile(File file) throws IOException
file
- the File to read fromIOException
- if the File can't be read or parsedClassHierarchy fromTextFile(File file) throws IOException
file
- the File to read fromIOException
- if the File can't be read or parsedClassHierarchy fromByteArray(byte[] theBytes) throws IOException
theBytes
- the byte[] to deserializeIOException
- if the byte[] can't be read or parsedClassHierarchy fromString(String theString) throws IOException
theString
- the String to deserializeIOException
- if the String can't be read or parsedCopyright © 2017 The Apache Software Foundation. All rights reserved.