This commit is contained in:
Ondřej Hruška
2014-04-22 18:07:29 +02:00
parent 880bcfb553
commit 9e4a237192
22 changed files with 354 additions and 234 deletions
+16 -1
View File
@@ -219,9 +219,24 @@ public class IonInput {
}
/**
* Read bundle without a mark
*/
public IonBundle readBundle() throws IOException
{
return (IonBundle) readObject();
IonBundle ib = new IonBundle();
ib.load(this);
return ib;
}
/**
* Read bundle without a mark, load into a provided one
*/
public void readBundle(IonBundle filled) throws IOException
{
filled.clear();
filled.load(this);
}
+4 -1
View File
@@ -181,9 +181,12 @@ public class IonOutput {
}
/**
* Write a bundle without a mark
*/
public void writeBundle(IonBundle bundle) throws IOException
{
writeObject(bundle);
bundle.save(this);
}