org.codehaus.mojo.mrm.api
Interface FileEntry

All Superinterfaces:
Entry, Serializable
All Known Implementing Classes:
BaseFileEntry

public interface FileEntry
extends Entry

An Entry that corresponds to a file.

Since:
1.0

Method Summary
 InputStream getInputStream()
          Returns the contents of the entry.
 long getSize()
          Returns the size in bytes of the entry.
 
Methods inherited from interface org.codehaus.mojo.mrm.api.Entry
getFileSystem, getLastModified, getName, getParent, toPath
 

Method Detail

getSize

long getSize()
             throws IOException
Returns the size in bytes of the entry.

Returns:
the length of the entry in bytes or -1L if the length cannot be determined.
Throws:
IOException - if an I/O error occurs.
Since:
1.0

getInputStream

InputStream getInputStream()
                           throws IOException
Returns the contents of the entry.

Returns:
the contents of the entry as an InputStream (caller is responsible for closing).
Throws:
IOException - if an I/O error occurs.
Since:
1.0


Copyright © 2009-2011 Codehaus. All Rights Reserved.