Class RepositoryFileReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.InputStreamReader
-
- org.pentaho.platform.repository2.unified.fileio.RepositoryFileReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public class RepositoryFileReader extends InputStreamReader
-
-
Constructor Summary
Constructors Constructor Description RepositoryFileReader(Serializable id)
RepositoryFileReader(String path)
RepositoryFileReader(org.pentaho.platform.api.repository2.unified.RepositoryFile file)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static String
getEncoding(Serializable id)
protected static String
getEncoding(String path)
protected static String
getEncoding(org.pentaho.platform.api.repository2.unified.RepositoryFile file)
-
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
-
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
RepositoryFileReader
public RepositoryFileReader(String path) throws FileNotFoundException, UnsupportedEncodingException
-
RepositoryFileReader
public RepositoryFileReader(org.pentaho.platform.api.repository2.unified.RepositoryFile file) throws FileNotFoundException, UnsupportedEncodingException
-
RepositoryFileReader
public RepositoryFileReader(Serializable id) throws FileNotFoundException, UnsupportedEncodingException
-
-
Method Detail
-
getEncoding
protected static String getEncoding(org.pentaho.platform.api.repository2.unified.RepositoryFile file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getEncoding
protected static String getEncoding(String path) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getEncoding
protected static String getEncoding(Serializable id) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-