diff options
Diffstat (limited to 'vespaclient-java/src/main/java/com/yahoo/vespafeeder/FileRequest.java')
-rwxr-xr-x | vespaclient-java/src/main/java/com/yahoo/vespafeeder/FileRequest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vespaclient-java/src/main/java/com/yahoo/vespafeeder/FileRequest.java b/vespaclient-java/src/main/java/com/yahoo/vespafeeder/FileRequest.java new file mode 100755 index 00000000000..3479221257d --- /dev/null +++ b/vespaclient-java/src/main/java/com/yahoo/vespafeeder/FileRequest.java @@ -0,0 +1,14 @@ +// Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.vespafeeder; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; + +public class FileRequest extends InputStreamRequest { + + FileRequest(File f) throws FileNotFoundException { + super(new FileInputStream(f)); + } + +} |