AbstractFileUseCheck |
Ancestor for classes that check whether a file is in use.
|
Default |
On Unix/Linux, uses 'lsof' to determine file use.
|
Deserialize |
Attempts to deserialize the file.
|
FileIncomplete |
Assumes the file to be in use when not complete, i.e., still being written.
|
FileSizeChange |
Checks the file size before and after the specified wait interval.
|
ImageMetaDataExtractor |
Uses the specified image reader to load the file for checking the 'in use' state: if reading fails, then it is assumed the file is in use.
|
ImageReader |
Uses the specified image reader to load the file for checking the 'in use' state: if reading fails, then it is assumed the file is in use.
|
JpegIsComplete |
Checks whether the JPEG file ends with bytes FFD9 (EOF for JPEGs).
See also:
http://en.wikipedia.org/wiki/JPEG#Syntax_and_structure
|
LastLineMatches |
Reads the file as text file and makes sure that the last line matches the regular expression.
If the last line doesn't match the expression, failing to read or reading no lines at all are all interpreted as 'in use'.
|
MultiCheck |
Applies the specified checks sequentially, stops as soon one of them returns that the file is 'in use'.
|
NoCheck |
Performs no check, always states that file is not in use.
|
NonWindows |
Uses 'lsof' to determine file use (OS other than Windows).
|
PngIsComplete |
Checks whether the PNG file ends with bytes IEND (EOF for PNGs).
See also:
https://en.wikipedia.org/wiki/Portable_Network_Graphics#Critical_chunks
http://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html#Chunk-layout
http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.IEND
|
TextReader |
Uses the specified text reader to load the file for checking the 'in use' state: if reading fails, then it is assumed the file is in use.
|
Windows |
Tries to open a FileOutputStream (Windows only).
|