net.xfra.qizxopen.util
Class VOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--java.io.BufferedOutputStream
|
+--net.xfra.qizxopen.util.VOutputStream
- public class VOutputStream
- extends java.io.BufferedOutputStream
Binary output stream with support for variable-length positive integers.
BUG: tell() is correct only if we use only the output methods defined here.
Methods inherited from class java.io.BufferedOutputStream |
flush, write, write |
Methods inherited from class java.io.FilterOutputStream |
close, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VOutputStream
public VOutputStream(java.io.File file)
throws java.io.FileNotFoundException
putVlong
public void putVlong(long code)
throws java.io.IOException
java.io.IOException
syncClose
public void syncClose()
throws java.io.IOException
- Closes and synchronizes the file on disk.
java.io.IOException
putVint
public void putVint(int code)
throws java.io.IOException
java.io.IOException
tell
public long tell()