Constructor and Description |
---|
InputFile(File file)
Construct for the given file.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
length()
Return the total length of the input.
|
int |
read(long position,
byte[] b,
int start,
int len)
Positioned read.
|
public InputFile(File file) throws IOException
IOException
public long length() throws IOException
Input
length
in interface Input
IOException
public int read(long position, byte[] b, int start, int len) throws IOException
Input
read
in interface Input
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.