public static interface Tailer.Tailable
| Modifier and Type | Method and Description |
|---|---|
Tailer.RandomAccessResourceBridge |
getRandomAccess(String mode)
Creates a random access file stream to read.
|
boolean |
isNewer(FileTime fileTime)
Tests if this tailable is newer than the specified
FileTime. |
FileTime |
lastModifiedFileTime()
Gets the last modification
FileTime. |
long |
size()
Gets the size of this tailable.
|
Tailer.RandomAccessResourceBridge getRandomAccess(String mode) throws FileNotFoundException
mode - the access mode, by default this is for RandomAccessFile.FileNotFoundException - if the tailable object does not exist.boolean isNewer(FileTime fileTime) throws IOException
FileTime.fileTime - the file time reference.File exists and has been modified after the given FileTime.IOException - if an I/O error occurs.FileTime lastModifiedFileTime() throws IOException
FileTime.Files.getLastModifiedTime(Path, LinkOption...).IOException - if an I/O error occurs.long size() throws IOException
0 if the file does not exist. Some operating systems may
return 0 for path names denoting system-dependent entities such as devices or pipes.IOException - if an I/O error occurs.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.