com.scudata.dm.RandomObjectWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.dm;
import java.io.IOException;
/**
* ???Ըı????λ?õ?д????
* @author WangXiaoJun
*
*/
final public class RandomObjectWriter extends ObjectWriter {
RandomOutputStream ros;
/**
* ???????Ըı????λ?õ?д????
* @param out ???Ըı????λ?õ??????
*/
public RandomObjectWriter(RandomOutputStream out) {
super(out);
this.ros = out;
}
/**
* ???ص?ǰ???λ??
* @return
* @throws IOException
*/
public long position() throws IOException {
return ros.position() + count;
}
/**
* ???????λ??
* @param newPosition
* @throws IOException
*/
public void position(long newPosition) throws IOException {
flush();
ros.position(newPosition);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy