Package com.mucommander.io.backup

Examples of com.mucommander.io.backup.BackupInputStream


     */
    ActionKeymapReader(AbstractFile file) throws SAXException, IOException, ParserConfigurationException {
      this.file = file;
     
      InputStream in = null;
      try {SAXParserFactory.newInstance().newSAXParser().parse(in = new BackupInputStream(file), this);}
      finally {
        if(in!=null) {
          try { in.close(); }
          catch(IOException e) {}
        }
View Full Code Here


        InputStream in;

        // Parse the bookmarks file
        in = null;
        isLoading = true;
        try {readBookmarks(in = new BackupInputStream(getBookmarksFile()), new Loader());}
        finally {
            if(in != null) {
                try {in.close();}
                catch(Exception e) {}
            }
View Full Code Here

    /**
     * Loads the shell history.
     * @throws Exception if an error occurs.
     */
    public static void loadHistory() throws Exception {
        BackupInputStream in;

        in = null;
        try {ShellHistoryReader.read(in = new BackupInputStream(getHistoryFile()));}
        finally {
            if(in != null) {
                try {in.close();}
                catch(Exception e2) {}
            }
        }
    }
View Full Code Here

    /**
     * Returns an input stream on the configuration file.
     * @return an input stream on the configuration file.
     */
    public synchronized Reader getReader() throws IOException {
        return new InputStreamReader(new BackupInputStream(getConfigurationFile()), Charset.forName("utf-8"));
    }
View Full Code Here

     */
    CommandBarReader(AbstractFile file) throws SAXException, IOException, ParserConfigurationException {
      this.file = file;
     
      InputStream in = null;
        try {SAXParserFactory.newInstance().newSAXParser().parse(in = new BackupInputStream(file), this);}
        finally {
            if(in!=null)
                try { in.close(); }
                catch(IOException e) {}
        }
View Full Code Here

     */
    ToolBarReader(AbstractFile descriptionFile) throws Exception {
        InputStream in;

        in = null;
        try {SAXParserFactory.newInstance().newSAXParser().parse(in = new BackupInputStream(descriptionFile), this);}
        finally {
            if(in != null) {
                try {in.close();}
                catch(IOException e) {}
            }
View Full Code Here

        LOGGER.debug("Loading associations from file: " + file.getAbsolutePath());

        // Tries to load the associations file.
        // Associations are not considered to be modified by this.
        in = null;
        try {AssociationReader.read(in = new BackupInputStream(file), new AssociationFactory());}
        finally {
            wereAssociationsModified = false;
            // Makes sure the input stream is closed.
            if(in != null) {
                try {in.close();}
View Full Code Here

        LOGGER.debug("Loading custom commands from: " + file.getAbsolutePath());

        // Tries to load the commands file.
        // Commands are not considered to be modified by this.
        in = null;
        try {CommandReader.read(in = new BackupInputStream(file), new CommandManager());}
        finally {
            wereCommandsModified = false;

            // Makes sure the input stream is closed.
            if(in != null) {
View Full Code Here

     * Returns an input stream on the user theme.
     * @return             an input stream on the user theme.
     * @throws IOException if an I/O related error occurs.
     */
    private static InputStream getUserThemeInputStream() throws IOException {
        return new BackupInputStream(getUserThemeFile());
    }
View Full Code Here

     * @param  name        name of the custom theme on which to open an input stream.
     * @return             an input stream on the requested custom theme.
     * @throws IOException if an I/O related error occurs.
     */
    private static InputStream getCustomThemeInputStream(String name) throws IOException {
        return new BackupInputStream(getCustomThemesFolder().getChild(name + ".xml"));
    }
View Full Code Here

TOP

Related Classes of com.mucommander.io.backup.BackupInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.