org.netxms.client
Class NXCReceivedFile

java.lang.Object
  extended by org.netxms.client.NXCReceivedFile

public class NXCReceivedFile
extends java.lang.Object

Represents file received from server


Field Summary
static int FAILED
           
static int OPEN
           
static int RECEIVED
           
 
Constructor Summary
protected NXCReceivedFile(long id)
          Create new received file with given id
 
Method Summary
protected  void abortTransfer()
           
protected  void close()
          Close file
 java.io.IOException getException()
           
 java.io.File getFile()
           
 long getId()
           
 long getSize()
           
 int getStatus()
           
 long getTimestamp()
           
protected  void writeData(byte[] data)
          Write data to file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NXCReceivedFile

protected NXCReceivedFile(long id)
Create new received file with given id

Parameters:
id -
Method Detail

writeData

protected void writeData(byte[] data)
Write data to file

Parameters:
data -

close

protected void close()
Close file


abortTransfer

protected void abortTransfer()
Parameters:
cause -

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 © 2013. All Rights Reserved.