You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
619 B
40 lines
619 B
11 years ago
|
package mightypork.util.files.ion;
|
||
11 years ago
|
|
||
|
|
||
|
import java.io.IOException;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Binary ion object
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public interface IonBinary {
|
||
|
|
||
|
/**
|
||
|
* Load data from the input stream.
|
||
|
*
|
||
|
* @param in input stream
|
||
|
* @throws IOException
|
||
|
*/
|
||
|
void load(IonInput in) throws IOException;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Store data to output stream (in such way that the load method will later
|
||
|
* be able to read it).
|
||
|
*
|
||
|
* @param out Output stream
|
||
|
* @throws IOException
|
||
|
*/
|
||
|
void save(IonOutput out) throws IOException;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Get Ion mark byte.
|
||
|
*
|
||
|
* @return Ion mark byte.
|
||
|
*/
|
||
|
public short getIonMark();
|
||
|
}
|