Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/makefile/IMakefileReaderProvider.java')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/makefile/IMakefileReaderProvider.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/makefile/IMakefileReaderProvider.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/makefile/IMakefileReaderProvider.java
new file mode 100644
index 00000000000..a8d0f26be5a
--- /dev/null
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/makefile/IMakefileReaderProvider.java
@@ -0,0 +1,31 @@
+/**
+ * (c) 2008 Nokia
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ed Swartz (NOKIA) - Initial API and implementation
+ */
+package org.eclipse.cdt.make.core.makefile;
+
+import java.io.IOException;
+import java.io.Reader;
+import java.net.URI;
+
+/**
+ * Provide an abstraction to loading the contents of a makefile
+ * @author eswartz
+ *
+ */
+public interface IMakefileReaderProvider {
+ /**
+ * Get a reader for the contents of the file at filename.
+ * @param fileURI the file to read. It's up to the implementation how to read
+ * it, but usually EFS.getFileStore(fileURI).getInputStream(...) is the best bet.
+ * @return Reader a reader for the contents of the existing file
+ * @throws IOException if the file cannot be found according to the implementation
+ */
+ Reader getReader(URI fileURI) throws IOException;
+}

Back to the top