org.xith3d.io
Class TestScribable

java.lang.Object
  extended by org.xith3d.io.TestScribable
All Implemented Interfaces:
Scribable

public class TestScribable
extends java.lang.Object
implements Scribable

This is a simple test object which creates a buffer of random data. When the data is saved some checksums are stored so that when the data is read back we can determine that it is exactly correct. This class is designed to test the archives.


Constructor Summary
TestScribable()
           
TestScribable(int size)
           
 
Method Summary
 long getCheckSum()
           
 void load(ScribeInputStream in)
           
 void save(ScribeOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestScribable

public TestScribable(int size)

TestScribable

public TestScribable()
Method Detail

getCheckSum

public long getCheckSum()

save

public void save(ScribeOutputStream out)
          throws java.io.IOException
Specified by:
save in interface Scribable
Throws:
java.io.IOException

load

public void load(ScribeInputStream in)
          throws java.io.IOException
Specified by:
load in interface Scribable
Throws:
java.io.IOException