org.xwiki.extension
Interface ExtensionFile

All Known Subinterfaces:
CoreExtensionFile, LocalExtensionFile

public interface ExtensionFile

Contains the actual file of the extensions and some informations like the size.

Since:
4.0M1
Version:
$Id$

Method Summary
 long getLength()
           
 InputStream openStream()
          Open an input stream to allows reading the extensions.
 

Method Detail

getLength

long getLength()
Returns:
the size of the extension file, -1 if not provided

openStream

InputStream openStream()
                       throws IOException
Open an input stream to allows reading the extensions.

Note that it's up to the user of this method to close the stream.

Returns:
the stream to read
Throws:
IOException - error when opening the stream


Copyright © 2004-2012 XWiki. All Rights Reserved.