muffinmanager/src/main/java/org/jbundle/util/muffinmanager/MuffinManager.java
public InputStream openFileStream(String pathHint, String[] extensions)
    {
        if (fos == null)
        {
            try { 
                fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService"); 
            } catch (UnavailableServiceException e) { 
                fos = null; 
            }
        }

        if (fos != null) { 
            try { 
                // ask user to select a file through this service 
                FileContents fc = fos.openFileDialog(pathHint, extensions);
                return fc.getInputStream();
            } catch (Exception e) { 
                e.printStackTrace(); 
            } 
        } 
        return null;
    }
public InputStream openFileStream(String pathHint, String[] extensions)
    {
        if (fos == null)
        {
            try { 
                fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService"); 
            } catch (UnavailableServiceException e) { 
                fos = null; 
            }
        }

        if (fos != null) { 
            try { 
                // ask user to select a file through this service 
                FileContents fc = fos.openFileDialog(pathHint, extensions);
                return fc.getInputStream();
            } catch (Exception e) { 
                e.printStackTrace(); 
            } 
        } 
        return null;
    }
public InputStream openFileStream ( String pathHint , String [ ] extensions ) { if ( fos == null ) { try { fos = ( FileOpenService ) ServiceManager . lookup ( "javax.jnlp.FileOpenService" ) ; } catch ( UnavailableServiceException e ) { fos = null ; } } if ( fos != null ) { try { // ask user to select a file through this service  FileContents fc = fos . openFileDialog ( pathHint , extensions ) ; return fc . getInputStream ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } return null ; }
Open this file.
@return
Open this file .