public class FileRecord extends Object
Constructor and Description |
---|
FileRecord(File f)
Creates a new FileRecord
|
Modifier and Type | Method and Description |
---|---|
void |
abort() |
byte[] |
getBytes(Long max_size)
Reads the file
|
FileTime |
getCreatedTime() |
File |
getFile() |
BasicFileAttributes |
getFileAttributes() |
FileTime |
getLastModTime() |
Long |
getLastRead() |
Long |
getSize() |
Long |
getSizeLeft() |
String |
getTmpName() |
Boolean |
isAborted() |
Boolean |
isCompleted() |
Boolean |
isStarted() |
void |
update(File f)
Updates the current FileRecord to match the
given file.
|
public FileRecord(File f) throws IOException
f
- The file to readIOException
- in case of problempublic void update(File f) throws IOException
f
- the new fileIOException
- ioexceptionpublic byte[] getBytes(Long max_size) throws IOException
max_size
- The max size to readIOException
- ioexceptionpublic String getTmpName()
public File getFile()
public BasicFileAttributes getFileAttributes()
public FileTime getLastModTime()
public FileTime getCreatedTime()
public Long getSize()
public Long getSizeLeft()
public Long getLastRead()
public Boolean isCompleted()
public Boolean isStarted()
public Boolean isAborted()
public void abort()
Copyright © 2023. All rights reserved.