|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gudy.azureus2.core3.internat.LocaleTorrentUtil
public class LocaleTorrentUtil
Locale functions specific to Torrents.
Constructor Summary | |
---|---|
LocaleTorrentUtil()
|
Method Summary | |
---|---|
static void |
addListener(LocaleUtilListener l)
|
static java.lang.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,
java.lang.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, java.io.UnsupportedEncodingException
torrent
- Torrent to get encoding of
TOTorrentException
java.io.UnsupportedEncodingException
public static LocaleUtilDecoder getTorrentEncoding(TOTorrent torrent) throws TOTorrentException, java.io.UnsupportedEncodingException
torrent
- Torrent to get encoding of
TOTorrentException
java.io.UnsupportedEncodingException
public static LocaleUtilDecoder getTorrentEncoding(TOTorrent torrent, boolean saveToFileAllowed) throws TOTorrentException, java.io.UnsupportedEncodingException
TOTorrentException
java.io.UnsupportedEncodingException
protected static LocaleUtilDecoderCandidate[] getTorrentCandidates(TOTorrent torrent) throws TOTorrentException, java.io.UnsupportedEncodingException
torrent
-
TOTorrentException
java.io.UnsupportedEncodingException
public static void setTorrentEncoding(TOTorrent torrent, java.lang.String encoding) throws LocaleUtilEncodingException
LocaleUtilEncodingException
public static void setDefaultTorrentEncoding(TOTorrent torrent) throws LocaleUtilEncodingException
LocaleUtilEncodingException
public static java.lang.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 |