public class MasterRemoteFile extends RemoteFile
Name pattern: The file must always be called master Initializing an instance with a different name will throw an exception.
|Constructor and Description|
Initializes a new master file with the name master.
Initializes a new master file, given a name.
|Modifier and Type||Method and Description|
Parses the name of the file and validates it against the classes name pattern.
createRemoteFile, createRemoteFile, equals, getAttributes, getName, hashCode, setAttributes, toString
public MasterRemoteFile() throws StorageException
StorageException- Never throws an exception.
public MasterRemoteFile(java.lang.String name) throws StorageException
createRemoteFile()method of the
name- Master file name; must always be master
StorageException- If the name is not master
protected java.lang.String validateName(java.lang.String name) throws StorageException
name- The name of the file (as it is identified by Syncany)
StorageException- If the name does not match the name pattern defined by the class.
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit d57afd7 at Sun Nov 18 14:29:16 UTC 2018
Copyright © 2011-2015 Philipp C. Heckel