Interface ParseNodeFactory
- All Known Implementing Classes:
BackingStoreParseNodeFactory,ParseNodeFactoryRegistry,ParseNodeProxyFactory
public interface ParseNodeFactory
Defines the contract for a factory that is used to create
ParseNodes.-
Method Summary
Modifier and TypeMethodDescriptiongetParseNode(String contentType, InputStream rawResponse) Creates aParseNodefrom the givenInputStreamand content type.Returns the content type this factory's parse nodes can deserialize.
-
Method Details
-
getValidContentType
Returns the content type this factory's parse nodes can deserialize.- Returns:
- the content type this factory's parse nodes can deserialize.
-
getParseNode
Creates aParseNodefrom the givenInputStreamand content type.- Parameters:
contentType- the content type of theInputStream.rawResponse- theInputStreamto read from.- Returns:
- a
ParseNodethat can deserialize the givenInputStream.
-