com.dtolabs.rundeck.core.resources.format
Interface ResourceFormatParser

All Known Implementing Classes:
ResourceXMLFormatParser, ResourceYamlFormatParser

public interface ResourceFormatParser

ResourceFormatParser is ...


Method Summary
 java.util.Set<java.lang.String> getFileExtensions()
          Return the list of file extensions that this format parser can parse.
 java.util.Set<java.lang.String> getMIMETypes()
          Return the list of MIME types that this format parser can parse.
 INodeSet parseDocument(java.io.File file)
          Parse a file
 INodeSet parseDocument(java.io.InputStream input)
          Parse an input stream
 

Method Detail

getFileExtensions

java.util.Set<java.lang.String> getFileExtensions()
Return the list of file extensions that this format parser can parse.


getMIMETypes

java.util.Set<java.lang.String> getMIMETypes()
Return the list of MIME types that this format parser can parse. This may include wildcards such as "*/xml".


parseDocument

INodeSet parseDocument(java.io.File file)
                       throws ResourceFormatParserException
Parse a file

Throws:
ResourceFormatParserException

parseDocument

INodeSet parseDocument(java.io.InputStream input)
                       throws ResourceFormatParserException
Parse an input stream

Throws:
ResourceFormatParserException