public class CopyrightParserImpl extends Object implements CopyrightParser, CopyrightConstants
A CopyrightParser
implementation.
FIELD_COMMENT, FIELD_COPYRIGHT, FIELD_DISCLAIMER, FIELD_FILES, FIELD_FORMAT, FIELD_LICENSE, FIELD_SOURCE, FIELD_UPSTREAM_CONTACT, FIELD_UPSTREAM_NAME, FORMAT_V1_0
Constructor and Description |
---|
CopyrightParserImpl()
Creates a parser.
|
Modifier and Type | Method and Description |
---|---|
Copyright |
parseCopyright(DataSource source,
Context context)
Parses the copyright from the specified source.
|
public Copyright parseCopyright(DataSource source, Context context) throws IOException, ParseException
CopyrightParser
Parses the copyright from the specified source.
parseCopyright
in interface CopyrightParser
source
- The source.context
- The context.IOException
- If an I/O error occurs.ParseException
- If an error occurs during the parsing.Copyright © 2015–2019. All rights reserved.