|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowserdataservice.file.ProgramField
public class ProgramField
| Constructor Summary | |
|---|---|
|
ProgramField()
|
protected |
ProgramField(Object o)
Used for creating an instance of ProgramField to read/store the additional ProgramFrame id in. |
|
ProgramField(ProgramFieldType type,
byte[] data)
Deprecated. use the factory method |
|
ProgramField(ProgramFieldType type,
int value)
Deprecated. use the factory method |
|
ProgramField(ProgramFieldType type,
String text)
Deprecated. use the factory method |
| Method Summary | |
|---|---|
static boolean |
arraysAreEqual(byte[] array1,
byte[] array2)
|
Object |
clone()
|
static ProgramField |
create(ProgramFieldType type,
byte[] data)
|
static ProgramField |
create(ProgramFieldType type,
int value)
|
static ProgramField |
create(ProgramFieldType type,
String text)
|
boolean |
equals(Object obj)
|
byte[] |
getBinaryData()
|
String |
getDataAsString()
Gets a String representation of the data value. |
int |
getIntData()
|
String |
getTextData()
|
int |
getTimeData()
|
ProgramFieldType |
getType()
|
int |
getTypeId()
|
void |
readFromStream(InputStream stream)
|
void |
removeData()
Is used for a field in an update file that should be deleted. |
void |
setBinaryData(byte[] data)
|
void |
setIntData(int value)
|
void |
setTextData(String text)
|
void |
setTimeData(int minutesAfter1970)
|
void |
setType(ProgramFieldType type)
|
void |
writeToStream(OutputStream stream)
|
protected void |
writeToStream(OutputStream stream,
boolean check)
Writes the data to a stream. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgramField()
protected ProgramField(Object o)
o - Dummy parameter.
public ProgramField(ProgramFieldType type,
String text)
public ProgramField(ProgramFieldType type,
byte[] data)
public ProgramField(ProgramFieldType type,
int value)
| Method Detail |
|---|
public static ProgramField create(ProgramFieldType type,
String text)
public static ProgramField create(ProgramFieldType type,
byte[] data)
public static ProgramField create(ProgramFieldType type,
int value)
public Object clone()
clone in class Objectpublic int getTypeId()
public ProgramFieldType getType()
public void setType(ProgramFieldType type)
type - public void removeData()
public byte[] getBinaryData()
public void setBinaryData(byte[] data)
data - public String getTextData()
public void setTextData(String text)
public int getIntData()
public void setIntData(int value)
public int getTimeData()
public void setTimeData(int minutesAfter1970)
public String getDataAsString()
public void readFromStream(InputStream stream)
throws IOException,
FileFormatException
IOException
FileFormatException
public void writeToStream(OutputStream stream)
throws IOException,
FileFormatException
IOException
FileFormatException
protected void writeToStream(OutputStream stream,
boolean check)
throws IOException,
FileFormatException
stream - The stream to write oncheck - If the format should be checked
IOException - Thrown if something goes wrong.
FileFormatException - Thrown if something goes wrong.
public static boolean arraysAreEqual(byte[] array1,
byte[] array2)
public boolean equals(Object obj)
equals in class Object
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||