public class XJData extends XJObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_INPUTSTREAM |
static int |
DATA_OBJECTINPUTSTREAM |
static int |
DATA_PLAINTEXT |
static int |
DATA_XML |
protected Map<String,Object> |
dictionary |
protected String |
file |
| Constructor and Description |
|---|
XJData() |
| Modifier and Type | Method and Description |
|---|---|
void |
dataChanged() |
int |
dataType() |
Object |
getDataForKey(String key) |
String |
getFile() |
void |
observeValueForKey(Object sender,
String key,
Object value) |
void |
readData() |
void |
readData(InputStream is) |
void |
readData(ObjectInputStream ois) |
void |
setDataForKey(Object sender,
String key,
Object value) |
void |
setFile(String file) |
void |
writeData() |
void |
writeData(ObjectOutputStream oos) |
void |
writeData(OutputStream os) |
addObserver, addObserverForKey, awake, bindObserverForKey, keyValueChanged, removeObserver, removeObserverForKeyprotected String file
public static final int DATA_INPUTSTREAM
public static final int DATA_OBJECTINPUTSTREAM
public static final int DATA_PLAINTEXT
public static final int DATA_XML
public void setFile(String file)
public String getFile()
public void dataChanged()
public void observeValueForKey(Object sender, String key, Object value)
observeValueForKey in class XJObjectpublic int dataType()
public void readData()
throws IOException
IOExceptionpublic void writeData()
throws IOException
IOExceptionpublic void readData(InputStream is) throws IOException
IOExceptionpublic void writeData(OutputStream os) throws IOException
IOExceptionpublic void readData(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void writeData(ObjectOutputStream oos) throws IOException
IOExceptionCopyright © 2013. All rights reserved.