public class NXCReceivedFile extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FAILED |
static int |
OPEN |
static int |
RECEIVED |
| Modifier | Constructor and Description |
|---|---|
protected |
NXCReceivedFile(long id)
Create new received file with given id
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
abortTransfer()
Abort file transfer
|
protected void |
close()
Close file
|
IOException |
getException() |
File |
getFile() |
long |
getId() |
long |
getSize() |
int |
getStatus() |
long |
getTimestamp() |
protected int |
writeData(byte[] data,
boolean compressedStream)
Write data to file
|
public static final int OPEN
public static final int RECEIVED
public static final int FAILED
protected NXCReceivedFile(long id)
id - protected int writeData(byte[] data,
boolean compressedStream)
data - data to be writtencompressedStream - true if data is part of compressed data streamprotected void close()
protected void abortTransfer()
public long getId()
public File getFile()
public int getStatus()
public long getTimestamp()
public long getSize()
public IOException getException()
Copyright © 2017. All rights reserved.