Class MarkdownDocumentParser
java.lang.Object
dev.langchain4j.data.document.parser.markdown.MarkdownDocumentParser
- All Implemented Interfaces:
DocumentParser
Parses Markdown file into a
Document.
please refer to the official Markdown website.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(InputStream inputStream) Parses a givenInputStreaminto aDocument.
-
Constructor Details
-
MarkdownDocumentParser
public MarkdownDocumentParser()
-
-
Method Details
-
parse
Description copied from interface:DocumentParserParses a givenInputStreaminto aDocument. The specific implementation of this method will depend on the type of the document being parsed.Note: This method does not close the provided
InputStream- it is the caller's responsibility to manage the lifecycle of the stream.- Specified by:
parsein interfaceDocumentParser- Parameters:
inputStream- TheInputStreamthat contains the content of theDocument.- Returns:
- The parsed
Document.
-