1b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair/*
2b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * Copyright 2008 the original author or authors.
3b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair *
4b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * Licensed under the Apache License, Version 2.0 (the "License");
5b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * you may not use this file except in compliance with the License.
6b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * You may obtain a copy of the License at
7b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair *
8b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair *      http://www.apache.org/licenses/LICENSE-2.0
9b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair *
10b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * Unless required by applicable law or agreed to in writing, software
11b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * distributed under the License is distributed on an "AS IS" BASIS,
12b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * See the License for the specific language governing permissions and
14b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * limitations under the License.
15b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair */
16b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair
17b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismairpackage org.mockftpserver.fake.filesystem;
18b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair
19b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair/**
20b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * Interface for an object that can format a file system directory listing.
21b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair *
22b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * @author Chris Mair
23b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair * @version $Revision$ - $Date$
24b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair */
25b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismairpublic interface DirectoryListingFormatter {
26b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair
27b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair    /**
28b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair     * Format the directory listing for a single file/directory entry.
29b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair     *
30b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair     * @param fileSystemEntry - the FileSystemEntry for a single file system entry
31b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair     * @return the formatted directory listing
32b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair     */
33b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair    String format(FileSystemEntry fileSystemEntry);
34b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair
35b2f4a2dfc590c250e42b21eb40d9539ac135b495chrismair}