| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| FileAlterationListenerAdaptor |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more | |
| 3 | * contributor license agreements. See the NOTICE file distributed with | |
| 4 | * this work for additional information regarding copyright ownership. | |
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 | |
| 6 | * (the "License"); you may not use this file except in compliance with | |
| 7 | * the License. You may obtain a copy of the License at | |
| 8 | * | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 10 | * | |
| 11 | * Unless required by applicable law or agreed to in writing, software | |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 14 | * See the License for the specific language governing permissions and | |
| 15 | * limitations under the License. | |
| 16 | */ | |
| 17 | package org.apache.commons.io.monitor; | |
| 18 | ||
| 19 | import java.io.File; | |
| 20 | ||
| 21 | /** | |
| 22 | * Convenience {@link FileAlterationListener} implementation that does nothing. | |
| 23 | * | |
| 24 | * @see FileAlterationObserver | |
| 25 | * @version $Id: FileAlterationListenerAdaptor.java 1304062 2012-03-22 21:10:46Z sebb $ | |
| 26 | * @since 2.0 | |
| 27 | */ | |
| 28 | 13 | public class FileAlterationListenerAdaptor implements FileAlterationListener { |
| 29 | ||
| 30 | /** | |
| 31 | * File system observer started checking event. | |
| 32 | * | |
| 33 | * @param observer The file system observer (ignored) | |
| 34 | */ | |
| 35 | public void onStart(final FileAlterationObserver observer) { | |
| 36 | 35 | } |
| 37 | ||
| 38 | /** | |
| 39 | * Directory created Event. | |
| 40 | * | |
| 41 | * @param directory The directory created (ignored) | |
| 42 | */ | |
| 43 | public void onDirectoryCreate(final File directory) { | |
| 44 | 6 | } |
| 45 | ||
| 46 | /** | |
| 47 | * Directory changed Event. | |
| 48 | * | |
| 49 | * @param directory The directory changed (ignored) | |
| 50 | */ | |
| 51 | public void onDirectoryChange(final File directory) { | |
| 52 | 9 | } |
| 53 | ||
| 54 | /** | |
| 55 | * Directory deleted Event. | |
| 56 | * | |
| 57 | * @param directory The directory deleted (ignored) | |
| 58 | */ | |
| 59 | public void onDirectoryDelete(final File directory) { | |
| 60 | 3 | } |
| 61 | ||
| 62 | /** | |
| 63 | * File created Event. | |
| 64 | * | |
| 65 | * @param file The file created (ignored) | |
| 66 | */ | |
| 67 | public void onFileCreate(final File file) { | |
| 68 | 22 | } |
| 69 | ||
| 70 | /** | |
| 71 | * File changed Event. | |
| 72 | * | |
| 73 | * @param file The file changed (ignored) | |
| 74 | */ | |
| 75 | public void onFileChange(final File file) { | |
| 76 | 6 | } |
| 77 | ||
| 78 | /** | |
| 79 | * File deleted Event. | |
| 80 | * | |
| 81 | * @param file The file deleted (ignored) | |
| 82 | */ | |
| 83 | public void onFileDelete(final File file) { | |
| 84 | 10 | } |
| 85 | ||
| 86 | /** | |
| 87 | * File system observer finished checking event. | |
| 88 | * | |
| 89 | * @param observer The file system observer (ignored) | |
| 90 | */ | |
| 91 | public void onStop(final FileAlterationObserver observer) { | |
| 92 | 35 | } |
| 93 | ||
| 94 | } |