|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.core3.internat.LocaleTorrentUtil
public class LocaleTorrentUtil
Locale functions specific to Torrents.
Constructor Summary | |
---|---|
LocaleTorrentUtil()
|
Method Summary | |
---|---|
static void |
addListener(LocaleUtilListener l)
|
static String |
getCurrentTorrentEncoding(TOTorrent torrent)
|
protected static LocaleUtilDecoderCandidate[] |
getTorrentCandidates(TOTorrent torrent)
Checks the Torrent's text fields (path, comment, etc) against a list of locals, returning only those that can handle all the fields. |
static LocaleUtilDecoder |
getTorrentEncoding(TOTorrent torrent)
Get the torrent's encoding, prompting the user to choose from a list if needed. |
static LocaleUtilDecoder |
getTorrentEncoding(TOTorrent torrent,
boolean saveToFileAllowed)
|
static LocaleUtilDecoder |
getTorrentEncodingIfAvailable(TOTorrent torrent)
Retrieves the encoding of the torrent if it can be determined. |
static void |
removeListener(LocaleUtilListener l)
|
static void |
setDefaultTorrentEncoding(TOTorrent torrent)
|
static void |
setTorrentEncoding(TOTorrent torrent,
String encoding)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleTorrentUtil()
Method Detail |
---|
public static LocaleUtilDecoder getTorrentEncodingIfAvailable(TOTorrent torrent) throws TOTorrentException, UnsupportedEncodingException
torrent
- Torrent to get encoding of
TOTorrentException
UnsupportedEncodingException
public static LocaleUtilDecoder getTorrentEncoding(TOTorrent torrent) throws TOTorrentException, UnsupportedEncodingException
torrent
- Torrent to get encoding of
TOTorrentException
UnsupportedEncodingException
public static LocaleUtilDecoder getTorrentEncoding(TOTorrent torrent, boolean saveToFileAllowed) throws TOTorrentException, UnsupportedEncodingException
TOTorrentException
UnsupportedEncodingException
protected static LocaleUtilDecoderCandidate[] getTorrentCandidates(TOTorrent torrent) throws TOTorrentException, UnsupportedEncodingException
torrent
-
TOTorrentException
UnsupportedEncodingException
public static void setTorrentEncoding(TOTorrent torrent, String encoding) throws LocaleUtilEncodingException
LocaleUtilEncodingException
public static void setDefaultTorrentEncoding(TOTorrent torrent) throws LocaleUtilEncodingException
LocaleUtilEncodingException
public static String getCurrentTorrentEncoding(TOTorrent torrent)
public static void addListener(LocaleUtilListener l)
public static void removeListener(LocaleUtilListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |