org.netxms.client
Class NXCReceivedFile
java.lang.Object
org.netxms.client.NXCReceivedFile
public class NXCReceivedFile
- extends java.lang.Object
Represents file received from server
Constructor Summary |
protected |
NXCReceivedFile(long id)
Create new received file with given id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPEN
public static final int OPEN
- See Also:
- Constant Field Values
RECEIVED
public static final int RECEIVED
- See Also:
- Constant Field Values
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
NXCReceivedFile
protected NXCReceivedFile(long id)
- Create new received file with given id
- Parameters:
id
-
writeData
protected void writeData(byte[] data)
- Write data to file
- Parameters:
data
-
close
protected void close()
- Close file
getId
public long getId()
- Returns:
- the id
getFile
public java.io.File getFile()
- Returns:
- the file
getStatus
public int getStatus()
- Returns:
- the status
getTimestamp
public long getTimestamp()
- Returns:
- the timestamp
getSize
public long getSize()
- Returns:
- the size
getException
public java.io.IOException getException()
- Returns:
- the exception
Copyright © 2011. All Rights Reserved.