org.jdesktop.wonderland.client.assetmgr
Class AssetInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.jdesktop.wonderland.client.assetmgr.AssetInputStream
All Implemented Interfaces:
java.io.Closeable

public class AssetInputStream
extends java.io.FileInputStream

Special FileInputStream that takes an asset and uses the local file from that asset.

Author:
Jonathan Kaplan

Constructor Summary
AssetInputStream(Asset asset)
           
 
Method Summary
 Asset getAsset()
          Get the asset associated with this stream
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, read, read, read, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetInputStream

public AssetInputStream(Asset asset)
                 throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getAsset

public Asset getAsset()
Get the asset associated with this stream



Open Wonderland - http://openwonderland.org