Package zombie.radio.media
Class RecordedMedia
java.lang.Object
zombie.radio.media.RecordedMedia
public class RecordedMedia
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecordedMedia.MediaNameSorter -
Field Summary
Fields Modifier and Type Field Description static booleanDISABLE_LINE_LEARNINGstatic java.lang.StringSAVE_FILEstatic intVERSION -
Constructor Summary
Constructors Constructor Description RecordedMedia() -
Method Summary
Modifier and Type Method Description java.util.ArrayListgetAllMediaForType(byte byte1)java.util.ArrayListgetCategories()shortgetIndexForMediaData(MediaData mediaData)MediaDatagetMediaData(java.lang.String string)MediaDatagetMediaDataFromIndex(short short1)static bytegetMediaTypeForCategory(java.lang.String string)MediaDatagetRandomFromCategory(java.lang.String string)booleanhasListenedLineAndAdd(java.lang.String string)booleanhasListenedToAll(IsoPlayer player, MediaData mediaData)booleanhasListenedToLine(IsoPlayer player, java.lang.String string)voidinit()voidload()MediaDataregister(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1)voidsave()static java.lang.StringtoAscii(java.lang.String string)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DISABLE_LINE_LEARNING
public static boolean DISABLE_LINE_LEARNING -
VERSION
public static final int VERSION- See Also:
- Constant Field Values
-
SAVE_FILE
public static final java.lang.String SAVE_FILE- See Also:
- Constant Field Values
-
-
Constructor Details
-
RecordedMedia
public RecordedMedia()
-
-
Method Details
-
hasListenedLineAndAdd
public boolean hasListenedLineAndAdd(java.lang.String string) -
init
public void init() -
getMediaTypeForCategory
public static byte getMediaTypeForCategory(java.lang.String string) -
getCategories
public java.util.ArrayList getCategories() -
getAllMediaForType
public java.util.ArrayList getAllMediaForType(byte byte1) -
register
public MediaData register(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1) -
getMediaDataFromIndex
-
getIndexForMediaData
-
getMediaData
-
getRandomFromCategory
-
load
public void load() throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save() throws java.io.IOException- Throws:
java.io.IOException
-
toAscii
public static java.lang.String toAscii(java.lang.String string) -
hasListenedToLine
-
hasListenedToAll
-