aboutsummaryrefslogtreecommitdiff
path: root/jimfs/src/main/java/com/google/common/jimfs/FileLookup.java
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-05 05:12:32 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-05 05:12:32 +0000
commit6f35239027aa2efad5fbbfe41ecad0923003112b (patch)
treef8cbc802a806455c5fdfeab7f696c63641b9f9f5 /jimfs/src/main/java/com/google/common/jimfs/FileLookup.java
parent68591711a9034281d5fe11fc7a30e535bbce125c (diff)
parent089373269bfaa2212f2008ac7bda148cdd6945c9 (diff)
downloadjimfs-6f35239027aa2efad5fbbfe41ecad0923003112b.tar.gz
Initial merge with upstream am: cef92d673c am: c5f71e95df am: e50b3b7561 am: c47b5481de am: 089373269b
Change-Id: I00caf048ac2f81928690feb6ce0c26274339e84a
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.java34
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;
+}