com.sun.j3d.utils.scenegraph.io.retained
Class PositionOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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
           
 
Constructor Summary
PositionOutputStream(java.io.OutputStream stream)
           
 
Method Summary
 long getFilePointer()
           
 void seekForward(long position)
          Move the file pointer to the specified position.
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int p1)
           
 
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
 

Field Detail

pos

private long pos

stream

private java.io.OutputStream stream
Constructor Detail

PositionOutputStream

public PositionOutputStream(java.io.OutputStream stream)
Method Detail

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.