@Override public RandomAccessInputStream getRandomAccessInputStream() throws IOException, UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.RANDOM_WRITE_FILE); }
/** * Verifies that the given {@link UnsupportedFileOperationException} is not <code>null</code> and that its * associated file operation matches the given one. * * @param e the {@link UnsupportedFileOperationException} to check * @param expectedFileOperation the expected file operation */ protected void assertUnsupportedFileOperationException(UnsupportedFileOperationException e, FileOperation expectedFileOperation) { assert e != null; assert expectedFileOperation.equals(e.getFileOperation()); }
@Override public long getTotalSpace() throws IOException, UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.GET_TOTAL_SPACE); }
@Override public void changePermission(PermissionAccess arg0, PermissionType arg1, boolean arg2) throws IOException, UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.CHANGE_PERMISSION); }
/** * Always throws an {@link UnsupportedFileOperationException}: random write access is not available for archive * entries. * * @throws UnsupportedFileOperationException always */ @Override @UnsupportedFileOperation public RandomAccessOutputStream getRandomAccessOutputStream() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.RANDOM_WRITE_FILE); }
/** * Always throws an {@link UnsupportedFileOperationException}: HTTP files are read-only. * * @throws UnsupportedFileOperationException always */ @Override @UnsupportedFileOperation public void delete() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.DELETE); }
/** * Always throws an {@link UnsupportedFileOperationException}. */ @Override @UnsupportedFileOperation public void mkdir() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.CREATE_DIRECTORY); }
/** * Always throws an {@link UnsupportedFileOperationException}. */ @Override @UnsupportedFileOperation public OutputStream getOutputStream() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.WRITE_FILE); }
/** * Always throws an {@link UnsupportedFileOperationException}. */ @Override @UnsupportedFileOperation public OutputStream getOutputStream() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.WRITE_FILE); }
@Override @UnsupportedFileOperation public void changePermission(PermissionAccess access, PermissionType permission, boolean enabled) throws IOException, UnsupportedFileOperationException { throw new UnsupportedFileOperationException( FileOperation.CHANGE_PERMISSION); }
@Override @UnsupportedFileOperation public void copyRemotelyTo(AbstractFile destFile) throws IOException, UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.COPY_REMOTELY); }
@Override @UnsupportedFileOperation public long getTotalSpace() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.GET_TOTAL_SPACE); }
/** * Always throws {@link UnsupportedFileOperationException} when called. */ @Override @UnsupportedFileOperation public OutputStream getOutputStream() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.WRITE_FILE); }
/** * Always throws {@link UnsupportedFileOperationException} when called. */ @Override @UnsupportedFileOperation public void changePermission(PermissionAccess access, PermissionType permission, boolean enabled) throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.CHANGE_PERMISSION); }
/** * Always throws {@link UnsupportedFileOperationException} when called. * * @throws UnsupportedFileOperationException, always */ @Override @UnsupportedFileOperation public long getTotalSpace() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.GET_TOTAL_SPACE); }
/** * Always throws {@link UnsupportedFileOperationException} when called. * * @throws UnsupportedFileOperationException, always */ @Override @UnsupportedFileOperation public void copyRemotelyTo(AbstractFile destFile) throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.COPY_REMOTELY); }
/** * Always throws {@link UnsupportedFileOperationException} when called. * * @throws UnsupportedFileOperationException, always */ @Override @UnsupportedFileOperation public long getTotalSpace() throws UnsupportedFileOperationException { // XFile has no method to provide that information throw new UnsupportedFileOperationException(FileOperation.GET_TOTAL_SPACE); }
/** * Always throws an {@link UnsupportedFileOperationException}: random write access is not available. * * @throws UnsupportedFileOperationException always */ @Override @UnsupportedFileOperation public RandomAccessOutputStream getRandomAccessOutputStream() throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.RANDOM_WRITE_FILE); }
/** * Implementation notes: always throws an {@link UnsupportedFileOperationException}. * * @throws UnsupportedFileOperationException always */ @Override @UnsupportedFileOperation public void copyRemotelyTo(AbstractFile destFile) throws UnsupportedFileOperationException { throw new UnsupportedFileOperationException(FileOperation.COPY_REMOTELY); }
/** * Always throws an {@link UnsupportedFileOperationException} when called. * * @throws UnsupportedFileOperationException always */ @Override @UnsupportedFileOperation public void copyRemotelyTo(AbstractFile destFile) throws UnsupportedFileOperationException { // TODO: we could consider adding remote copy support to RWArchiveEntryFile throw new UnsupportedFileOperationException(FileOperation.COPY_REMOTELY); }