public static interface Tailer.Tailable
| Modifier and Type | Method and Description |
|---|---|
Tailer.RandomAccessResourceBridge |
getRandomAccess(java.lang.String mode)
Creates a random access file stream to read.
|
boolean |
isNewer(java.nio.file.attribute.FileTime fileTime)
Tests if this tailable is newer than the specified
FileTime. |
java.nio.file.attribute.FileTime |
lastModifiedFileTime()
Gets the last modification
FileTime. |
long |
size()
Gets the size of this tailable.
|
Tailer.RandomAccessResourceBridge getRandomAccess(java.lang.String mode) throws java.io.FileNotFoundException
mode - the access mode, by default this is for RandomAccessFile.java.io.FileNotFoundException - if the tailable object does not exist.boolean isNewer(java.nio.file.attribute.FileTime fileTime)
throws java.io.IOException
FileTime.fileTime - the file time reference.File exists and has been modified after the given FileTime.java.io.IOException - if an I/O error occurs.java.nio.file.attribute.FileTime lastModifiedFileTime()
throws java.io.IOException
FileTime.Files.getLastModifiedTime(Path, LinkOption...).java.io.IOException - if an I/O error occurs.long size() throws java.io.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.java.io.IOException - if an I/O error occurs.Copyright © 2010 - 2023 Adobe. All Rights Reserved