Class PieceMapperImpl

    • Field Detail

      • last_piece_length

        private final int last_piece_length
    • Constructor Detail

      • PieceMapperImpl

        public PieceMapperImpl​(TOTorrent _torrent)
    • Method Detail

      • construct

        public void construct​(LocaleUtilDecoder _locale_decoder,
                              java.lang.String _save_name)
                       throws java.io.UnsupportedEncodingException
        Specified by:
        construct in interface DMPieceMapper
        Throws:
        java.io.UnsupportedEncodingException
      • buildFileLookupTables

        private void buildFileLookupTables​(TOTorrentFile torrent_file,
                                           java.lang.String fileName)
      • buildFileLookupTables

        private void buildFileLookupTables​(TOTorrentFile[] torrent_files,
                                           LocaleUtilDecoder locale_decoder)
                                    throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • buildFileLookupTable

        private void buildFileLookupTable​(TOTorrentFile torrent_file,
                                          LocaleUtilDecoder locale_decoder,
                                          char separator)
                                   throws java.io.UnsupportedEncodingException
        Builds the path stored in fileDictionay, saving it in btFileList
        Parameters:
        fileDictionay -
        btFileList -
        localeUtil -
        separator -
        Throws:
        java.io.UnsupportedEncodingException