com.athaydes.rawhttp.reqinedit.FileReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rawhttp-req-in-edit Show documentation
Show all versions of rawhttp-req-in-edit Show documentation
RawHTTP req-in-edit module (Jetbrains HTTP format)
package com.athaydes.rawhttp.reqinedit;
import java.io.IOException;
import java.nio.file.Path;
/**
* Simple file reader.
*/
@FunctionalInterface
public interface FileReader {
/**
* Read the full contents of the file at the given path as a byte array.
*
* @param path of file
* @return bytes of the file
* @throws IOException if a problem occurs reading the file
*/
byte[] read(Path path) throws IOException;
}