1 /*
2 * Copyright (c) 2005-2007 Creative Sphere Limited.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *
10 * Creative Sphere - initial API and implementation
11 *
12 */
13 package org.abstracthorizon.mercury.maildir.file;
14
15 import java.io.File;
16 import java.io.IOException;
17
18 /**
19 * Interface needed for <code>SharedInputStreamImpl</code> objects.
20 *
21 * @author Daniel Sendula
22 */
23 public interface FileProvider {
24
25 /**
26 * Returns file.
27 * @return file
28 * @throws IOException
29 */
30 File getFile() throws IOException;
31
32 /**
33 * Returns file size or -1 if not known
34 * @return file size or -1 if not known
35 */
36 long getFileSize();
37
38 }