org.gudy.azureus2.core3.disk.impl.piecemapper.impl
Class PieceMapperImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.disk.impl.piecemapper.impl.PieceMapperImpl
All Implemented Interfaces:
DMPieceMapper

public class PieceMapperImpl
extends Object
implements DMPieceMapper

Author:
parg

Nested Class Summary
protected static class PieceMapperImpl.fileInfo
           
 
Field Summary
protected  ArrayList<PieceMapperImpl.fileInfo> btFileList
           
 
Constructor Summary
PieceMapperImpl(TOTorrent _torrent)
           
 
Method Summary
 void construct(LocaleUtilDecoder _locale_decoder, String _save_name)
           
 DMPieceMapperFile[] getFiles()
           
 int getLastPieceLength()
           
 int getPieceLength()
           
 DMPieceMap getPieceMap()
           
 long getTotalLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

btFileList

protected ArrayList<PieceMapperImpl.fileInfo> btFileList
Constructor Detail

PieceMapperImpl

public PieceMapperImpl(TOTorrent _torrent)
Method Detail

construct

public void construct(LocaleUtilDecoder _locale_decoder,
                      String _save_name)
               throws UnsupportedEncodingException
Specified by:
construct in interface DMPieceMapper
Throws:
UnsupportedEncodingException

getPieceMap

public DMPieceMap getPieceMap()
Specified by:
getPieceMap in interface DMPieceMapper

getTotalLength

public long getTotalLength()
Specified by:
getTotalLength in interface DMPieceMapper

getPieceLength

public int getPieceLength()
Specified by:
getPieceLength in interface DMPieceMapper

getLastPieceLength

public int getLastPieceLength()
Specified by:
getLastPieceLength in interface DMPieceMapper

getFiles

public DMPieceMapperFile[] getFiles()
Specified by:
getFiles in interface DMPieceMapper