diff src/goodjava/lucene/logging/LogFile.java @ 1490:9a2a2181a58f

FixedLengthInputStream
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 02 May 2020 20:42:28 -0600
parents 2469aa31f31b
children 86c5e7000ecf
line wrap: on
line diff
--- a/src/goodjava/lucene/logging/LogFile.java	Sat May 02 16:28:24 2020 -0600
+++ b/src/goodjava/lucene/logging/LogFile.java	Sat May 02 20:42:28 2020 -0600
@@ -10,7 +10,7 @@
 import java.io.IOException;
 import goodjava.logging.Logger;
 import goodjava.logging.LoggerFactory;
-import goodjava.io.LimitedInputStream;
+import goodjava.io.FixedLengthInputStream;
 import goodjava.io.BufferedInputStream;
 
 
@@ -54,7 +54,7 @@
 
 	public LogInputStream input() throws IOException {
 		InputStream in = new FileInputStream(file);
-		in = new LimitedInputStream(in,end);
+		in = new FixedLengthInputStream(in,end);
 		in = new BufferedInputStream(in);
 		LogInputStream lis = newLogInputStream(in);
 		lis.readLong();  // skip end