Package org.teiid.file
Interface VirtualFileConnection
-
- All Superinterfaces:
org.teiid.resource.api.Connection
- All Known Implementing Classes:
FtpFileConnection
public interface VirtualFileConnection extends org.teiid.resource.api.ConnectionSimple interface for the filesystem
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVirtualFileConnection.Util
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(InputStream in, String path)Add a fileVirtualFile[]getFiles(String namePattern)Return a list of files by a given file patternbooleanremove(String path)Remove a file
-
-
-
Method Detail
-
getFiles
VirtualFile[] getFiles(String namePattern) throws org.teiid.translator.TranslatorException
Return a list of files by a given file pattern- Parameters:
namePattern- - the syntax and pattern- Returns:
- Throws:
org.teiid.translator.TranslatorException
-
add
void add(InputStream in, String path) throws org.teiid.translator.TranslatorException
Add a file- Throws:
org.teiid.translator.TranslatorException
-
remove
boolean remove(String path) throws org.teiid.translator.TranslatorException
Remove a file- Parameters:
path-- Returns:
- Throws:
org.teiid.translator.TranslatorException
-
-