@Test public void testStartsWithScheme() { String fileName = "zip:file: assertTrue( KettleVFS.startsWithScheme( fileName ) ); fileName = "SavedLinkedres.zip!Calculate median and percentiles using the group by steps.ktr"; assertFalse( KettleVFS.startsWithScheme( fileName ) ); }
public static boolean startsWithScheme( String vfsFileName ) { FileSystemManager fsManager = getInstance().getFileSystemManager(); boolean found = false; String[] schemes = fsManager.getSchemes(); for ( int i = 0; i < schemes.length; i++ ) { if ( vfsFileName.startsWith( schemes[i] + ":" ) ) { found = true; break; } } return found; }
KettleVFS { public static boolean startsWithScheme( String vfsFileName ) { FileSystemManager fsManager = getInstance().getFileSystemManager(); boolean found = false; String[] schemes = fsManager.getSchemes(); for ( int i = 0; i < schemes.length; i++ ) { if ( vfsFileName.startsWith( schemes[i] + ":" ) ) { found = true; break; } } return found; } }
KettleVFS { public static boolean startsWithScheme( String vfsFileName ) { FileSystemManager fsManager = getInstance().getFileSystemManager(); boolean found = false; String[] schemes = fsManager.getSchemes(); for ( int i = 0; i < schemes.length; i++ ) { if ( vfsFileName.startsWith( schemes[i] + ":" ) ) { found = true; break; } } return found; } private  KettleVFS(); }
KettleVFS { public static boolean startsWithScheme( String vfsFileName ) { FileSystemManager fsManager = getInstance().getFileSystemManager(); boolean found = false; String[] schemes = fsManager.getSchemes(); for ( int i = 0; i < schemes.length; i++ ) { if ( vfsFileName.startsWith( schemes[i] + ":" ) ) { found = true; break; } } return found; } private  KettleVFS(); FileSystemManager getFileSystemManager(); static KettleVFS getInstance(); static FileObject getFileObject( String vfsFilename ); static FileObject getFileObject( String vfsFilename, VariableSpace space ); static FileObject getFileObject( String vfsFilename, FileSystemOptions fsOptions ); static FileObject getFileObject( String vfsFilename, VariableSpace space, FileSystemOptions fsOptions ); static String getTextFileContent( String vfsFilename, String charSetName ); static String getTextFileContent( String vfsFilename, VariableSpace space, String charSetName ); static boolean fileExists( String vfsFilename ); static boolean fileExists( String vfsFilename, VariableSpace space ); static InputStream getInputStream( FileObject fileObject ); static InputStream getInputStream( String vfsFilename ); static InputStream getInputStream( String vfsFilename, VariableSpace space ); static OutputStream getOutputStream( FileObject fileObject, boolean append ); static OutputStream getOutputStream( String vfsFilename, boolean append ); static OutputStream getOutputStream( String vfsFilename, VariableSpace space, boolean append ); static OutputStream getOutputStream( String vfsFilename, VariableSpace space,
      FileSystemOptions fsOptions, boolean append ); static String getFilename( FileObject fileObject ); static String getFriendlyURI( String filename ); static String getFriendlyURI( FileObject fileObject ); static FileObject createTempFile( String prefix, String suffix, String directory ); static FileObject createTempFile( String prefix, String suffix, String directory, VariableSpace space ); static Comparator<FileObject> getComparator(); @Deprecated static FileInputStream getFileInputStream( FileObject fileObject ); static boolean startsWithScheme( String vfsFileName ); static void closeEmbeddedFileSystem( String embeddedMetastoreKey ); }
KettleVFS { public static boolean startsWithScheme( String vfsFileName ) { FileSystemManager fsManager = getInstance().getFileSystemManager(); boolean found = false; String[] schemes = fsManager.getSchemes(); for ( int i = 0; i < schemes.length; i++ ) { if ( vfsFileName.startsWith( schemes[i] + ":" ) ) { found = true; break; } } return found; } private  KettleVFS(); FileSystemManager getFileSystemManager(); static KettleVFS getInstance(); static FileObject getFileObject( String vfsFilename ); static FileObject getFileObject( String vfsFilename, VariableSpace space ); static FileObject getFileObject( String vfsFilename, FileSystemOptions fsOptions ); static FileObject getFileObject( String vfsFilename, VariableSpace space, FileSystemOptions fsOptions ); static String getTextFileContent( String vfsFilename, String charSetName ); static String getTextFileContent( String vfsFilename, VariableSpace space, String charSetName ); static boolean fileExists( String vfsFilename ); static boolean fileExists( String vfsFilename, VariableSpace space ); static InputStream getInputStream( FileObject fileObject ); static InputStream getInputStream( String vfsFilename ); static InputStream getInputStream( String vfsFilename, VariableSpace space ); static OutputStream getOutputStream( FileObject fileObject, boolean append ); static OutputStream getOutputStream( String vfsFilename, boolean append ); static OutputStream getOutputStream( String vfsFilename, VariableSpace space, boolean append ); static OutputStream getOutputStream( String vfsFilename, VariableSpace space,
      FileSystemOptions fsOptions, boolean append ); static String getFilename( FileObject fileObject ); static String getFriendlyURI( String filename ); static String getFriendlyURI( FileObject fileObject ); static FileObject createTempFile( String prefix, String suffix, String directory ); static FileObject createTempFile( String prefix, String suffix, String directory, VariableSpace space ); static Comparator<FileObject> getComparator(); @Deprecated static FileInputStream getFileInputStream( FileObject fileObject ); static boolean startsWithScheme( String vfsFileName ); static void closeEmbeddedFileSystem( String embeddedMetastoreKey );  }