diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-05 04:19:48 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-05 04:19:48 +0000 |
commit | c5f71e95df2f3189f2b68140ebac0c76a238190f (patch) | |
tree | f8cbc802a806455c5fdfeab7f696c63641b9f9f5 /jimfs/src/main/java/com/google/common/jimfs/FileLookup.java | |
parent | 68591711a9034281d5fe11fc7a30e535bbce125c (diff) | |
parent | cef92d673c81daab4b0dad931591947c86e0dc8a (diff) | |
download | jimfs-c5f71e95df2f3189f2b68140ebac0c76a238190f.tar.gz |
Initial merge with upstream am: cef92d673c
Change-Id: Ic4daadc9eb65c5d1f06d8cd6e1d975523371e9d3
Diffstat (limited to 'jimfs/src/main/java/com/google/common/jimfs/FileLookup.java')
-rw-r--r-- | jimfs/src/main/java/com/google/common/jimfs/FileLookup.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/jimfs/src/main/java/com/google/common/jimfs/FileLookup.java b/jimfs/src/main/java/com/google/common/jimfs/FileLookup.java new file mode 100644 index 0000000..b427b0a --- /dev/null +++ b/jimfs/src/main/java/com/google/common/jimfs/FileLookup.java @@ -0,0 +1,34 @@ +/* + * Copyright 2014 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.common.jimfs; + +import java.io.IOException; + +/** + * Callback for looking up a file. + * + * @author Colin Decker + */ +public interface FileLookup { + + /** + * Looks up the file. + * + * @throws IOException if the lookup fails for any reason, such as the file not existing + */ + File lookup() throws IOException; +} |