org.deegree.rendering.r3d.multiresolution.io
Class MeshFragmentDataReader
java.lang.Object
org.deegree.rendering.r3d.multiresolution.io.MeshFragmentDataReader
public class MeshFragmentDataReader
- extends java.lang.Object
This class opens a channel to a file containing meshfragments.
- Version:
- $Revision$
- Author:
- Markus Schneider, last edited by: $Author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeshFragmentDataReader
public MeshFragmentDataReader(java.io.File meshFragments,
DirectByteBufferPool directBufferPool)
throws java.io.FileNotFoundException
- Construct access to a file containing mesh fragments.
- Parameters:
meshFragments
- directBufferPool
-
- Throws:
java.io.FileNotFoundException
read
public MeshFragmentData read(int fragmentId,
long offset,
int length)
throws java.io.IOException
- Read meshdata from the file.
- Parameters:
fragmentId
- offset
- length
-
- Returns:
- the actual data read from the file.
- Throws:
java.io.IOException
getDirectBufferPool
public DirectByteBufferPool getDirectBufferPool()
- Returns:
- the pool used to allocate direct buffers.
Copyright © 2011. All Rights Reserved.