Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.TimedInputStream$CleanupTask


    public InputStream getInputStream(String resourceName) throws IOException {
        if (!checkResourceName(resourceName))
            return null;

        File f = new File(directory, resourceName);
        return new TimedInputStream(new BufferedInputStream(
                new FileInputStream(f)));
    }
View Full Code Here


            // note: this strategy will only work if we KNOW that people have
            // performed a "backupCollection" call immediately before calling
            // this method.  If any time intervenes, a legacy dashboard could
            // run a backup, and our "mostRecentBackup" could become an
            // incremental backup instead of a full backup.
            return new TimedInputStream(new BufferedInputStream(
                    new FileInputStream(mostRecentBackup)));
        else
            throw new IOException("No backup made since restart");
    }
View Full Code Here

        return SvnFile.resources.getString("Report.Locally_Modified");
    }

    public InputStream getContents() throws IOException {
        helper.waitTillReady();
        return new TimedInputStream(new FileInputStream(file));
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.TimedInputStream$CleanupTask

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.