public class Utility
extends java.lang.Object
| Constructor and Description |
|---|
Utility() |
| Modifier and Type | Method and Description |
|---|---|
static long |
seekBack(java.io.File f,
int count,
java.lang.String marker)
seekBack searches backwards for certain markers in a file, and returns position of the final marker found.
|
static long |
seekBack(java.io.File f,
int count,
java.lang.String marker,
com.google.common.base.Predicate<java.io.InputStream> validity)
seekBack searches backwards for certain markers in a file, and returns position of the final marker found.
|
public static long seekBack(java.io.File f,
int count,
java.lang.String marker)
throws java.io.IOException
f - the file to searchcount - number of markers to findmarker - text string markerjava.io.IOExceptionpublic static long seekBack(java.io.File f,
int count,
java.lang.String marker,
com.google.common.base.Predicate<java.io.InputStream> validity)
throws java.io.IOException
f - the file to searchcount - number of markers to findmarker - text string markervalidity - predicate to test whether the stream is at a valid position, or nulljava.io.IOException