mirror of
https://github.com/Febbweiss/logstash-forwarder-java.git
synced 2026-03-05 06:35:44 +00:00
Changed java.io.RandomAccessFile to ucar.unidata.io.RandomAccessFile.
This commit is contained in:
@@ -20,10 +20,13 @@ package info.fetter.logstashforwarder;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
//import java.io.RandomAccessFile;
|
||||
|
||||
|
||||
import org.apache.commons.lang.builder.ToStringBuilder;
|
||||
|
||||
import ucar.unidata.io.RandomAccessFile;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
public class FileState {
|
||||
@@ -56,7 +59,7 @@ public class FileState {
|
||||
this.file = file;
|
||||
directory = file.getCanonicalFile().getParent();
|
||||
fileName = file.getName();
|
||||
randomAccessFile = new RandomAccessFile(file, "r");
|
||||
randomAccessFile = new RandomAccessFile(file.getPath(), "r");
|
||||
lastModified = file.lastModified();
|
||||
size = file.length();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user