|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.mucommander.io.BackupInputStream
public class BackupInputStream
Opens an input stream on a file that has been saved by BackupOutputStream.
This class' role is to choose which of the original or backup file should be read in order to ensure that the data is not corrupt.
BackupOutputStream| Field Summary | |
|---|---|
static char |
BACKUP_SUFFIX
Character to add suffix file names with in order to mark them as backup. |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
BackupInputStream(AbstractFile file)
Opens a backup input stream on the specified file. |
|
BackupInputStream(java.io.File file)
Opens a backup input stream on the specified file. |
|
BackupInputStream(java.lang.String path)
Opens a backup input stream on the specified file. |
|
| Method Summary |
|---|
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char BACKUP_SUFFIX
| Constructor Detail |
|---|
public BackupInputStream(java.io.File file)
throws java.io.IOException
file - file to open for reading.
java.io.IOException - thrown if any IO related error occurs.
public BackupInputStream(java.lang.String path)
throws java.io.IOException
path - path to the file to open for reading.
java.io.IOException - thrown if any IO related error occurs.
public BackupInputStream(AbstractFile file)
throws java.io.IOException
file - file to open for reading.
java.io.IOException - thrown if any IO related error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard