com.sun.j3d.utils.scenegraph.io.retained
Class PositionOutputStream
java.lang.Object
java.io.OutputStream
com.sun.j3d.utils.scenegraph.io.retained.PositionOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
class PositionOutputStream
- extends java.io.OutputStream
Field Summary |
private long |
pos
|
private java.io.OutputStream |
stream
|
Methods inherited from class java.io.OutputStream |
close, flush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pos
private long pos
stream
private java.io.OutputStream stream
PositionOutputStream
public PositionOutputStream(java.io.OutputStream stream)
write
public void write(int p1)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
seekForward
public void seekForward(long position)
throws java.io.IOException
- Move the file pointer to the specified position.
The position MUST be greater or equal to the current position
- Throws:
java.io.IOException
getFilePointer
public long getFilePointer()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.