Author: tallison
Date: Thu Oct 1 13:36:22 2015
New Revision: 1706249
URL: http://svn.apache.org/viewvc?rev=1706249&view=rev
Log:
TIKA-1744 tidying up via Yaniv Kunda
Modified:
tika/trunk/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java
Modified:
tika/trunk/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java
URL:
http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java?rev=1706249&r1=1706248&r2=1706249&view=diff
==============================================================================
--- tika/trunk/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java
(original)
+++ tika/trunk/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java
Thu Oct 1 13:36:22 2015
@@ -237,9 +237,10 @@ public class TikaInputStream extends Tag
* @param file input file
* @return a TikaInputStream instance
* @throws FileNotFoundException if the file does not exist
- * @deprecated use #get(Path). In Tika 2.0, this will be removed
+ * @deprecated use {@link #get(Path)}. In Tika 2.0, this will be removed
* or modified to throw an IOException.
*/
+ @Deprecated
public static TikaInputStream get(File file) throws FileNotFoundException {
return get(file, new Metadata());
}
@@ -256,9 +257,10 @@ public class TikaInputStream extends Tag
* @return a TikaInputStream instance
* @throws FileNotFoundException if the file does not exist
* or cannot be opened for reading
- * @deprecated use #get(Path, Metadata). In Tika 2.0,
+ * @deprecated use {@link #get(Path, Metadata)}. In Tika 2.0,
* this will be removed or modified to throw an IOException.
*/
+ @Deprecated
public static TikaInputStream get(File file, Metadata metadata)
throws FileNotFoundException {
metadata.set(Metadata.RESOURCE_NAME_KEY, file.getName());
@@ -488,8 +490,9 @@ public class TikaInputStream extends Tag
*
* @param file the file that contains the stream
* @throws FileNotFoundException if the file does not exist
- * @deprecated use #TikaInputStream(Path)
+ * @deprecated use {@link #TikaInputStream(Path)}
*/
+ @Deprecated
private TikaInputStream(File file) throws FileNotFoundException {
super(new BufferedInputStream(new FileInputStream(file)));
this.path = file.toPath();