public RemoteFile() { resetData(); }
/** * Create new {@link RemoteFile} with given path. * * The path received must be URL-decoded. Path separator must be OCFile.PATH_SEPARATOR, and it must be the first character in 'path'. * * @param path The remote path of the file. */ public RemoteFile(String path) { resetData(); if (path == null || path.length() <= 0 || !path.startsWith(FileUtils.PATH_SEPARATOR)) { throw new IllegalArgumentException("Trying to create a OCFile with a non valid remote path: " + path); } mRemotePath = path; mCreationTimestamp = 0; mLength = 0; mMimeType = "DIR"; mQuotaUsedBytes = BigDecimal.ZERO; mQuotaAvailableBytes = BigDecimal.ZERO; mPrivateLink = null; }