Package org.apache.juneau.marshall.jena
Class RdfStreamParser
java.lang.Object
org.apache.juneau.marshall.Context
org.apache.juneau.marshall.MarshallingContextable
org.apache.juneau.marshall.parser.Parser
org.apache.juneau.marshall.parser.InputStreamParser
org.apache.juneau.marshall.jena.RdfStreamParser
- All Implemented Interfaces:
RdfMetaProvider,XmlMetaProvider
- Direct Known Subclasses:
RdfProtoParser,RdfThriftParser
Stream-based RDF parser for binary formats (RDF/THRIFT, RDF/PROTO).
Extends InputStreamParser and delegates RDF metadata to an internal RdfParser.
Notes:
- This class is thread safe and reusable.
See Also:
- {doc jmr.RdfDetails}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class.static final classNested classes/interfaces inherited from class org.apache.juneau.marshall.parser.Parser
Parser.Null -
Field Summary
Fields inherited from class org.apache.juneau.marshall.parser.Parser
autoCloseStreams, consumes, debugOutputLines, listener, nulls, trimStrings, unbufferedFields inherited from class org.apache.juneau.marshall.MarshallingContextable
marshallingContextFields inherited from class org.apache.juneau.marshall.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a builder from this context object.static RdfStreamParser.Builder<?>create()Creates a new builder.Create a session builder based on the properties defined on this context.protected RdfCollectionFormatCollection format - delegates to RdfParser.protected NamespaceJuneau BP namespace - delegates to RdfParser.protected NamespaceJuneau namespace - delegates to RdfParser.Returns the RDF language.getRdfBeanMeta(BeanMeta<?> bm) Returns the language-specific metadata on the specified bean.Returns the language-specific metadata on the specified bean property.getRdfClassMeta(ClassMeta<?> cm) Returns the language-specific metadata on the specified class.protected RdfParserReturns the delegated RdfParser.getXmlBeanMeta(BeanMeta<?> bm) Returns the language-specific metadata on the specified bean.Returns the language-specific metadata on the specified bean property.getXmlClassMeta(ClassMeta<?> cm) Returns the language-specific metadata on the specified class.protected booleanLoose collections - delegates to RdfParser.protected booleanTrim whitespace - delegates to RdfParser.Methods inherited from class org.apache.juneau.marshall.parser.InputStreamParser
getBinaryFormat, getSession, isReaderParserMethods inherited from class org.apache.juneau.marshall.parser.Parser
canHandle, createParserBuilder, doRead, getDebugOutputLines, getListener, getMediaTypes, getNulls, getPrimaryMediaType, isAutoCloseStreams, isTrimStrings, isUnbuffered, properties, read, read, read, read, read, read, readArgs, readIntoCollection, readIntoMap, readWithOuterMethods inherited from class org.apache.juneau.marshall.MarshallingContextable
getDurationFormat, getMarshallingContext, getPeriodFormatMethods inherited from class org.apache.juneau.marshall.Context
createBuilder, getAnnotationProvider, init, isDebug, toString
-
Constructor Details
-
RdfStreamParser
Constructor.- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder.- Returns:
- A new builder.
-
copy
Description copied from class:ContextCreates a builder from this context object.Builders are used to define new contexts (e.g. serializers, parsers) based on existing configurations.
-
createSession
Description copied from class:ContextCreate a session builder based on the properties defined on this context.Use this method for creating sessions where you want to override basic settings. Otherwise, use
Context.getSession()directly.- Overrides:
createSessionin classInputStreamParser- Returns:
- A new session builder.
-
getRdfBeanMeta
Description copied from interface:RdfMetaProviderReturns the language-specific metadata on the specified bean.- Specified by:
getRdfBeanMetain interfaceRdfMetaProvider- Parameters:
bm- The bean to return the metadata on.- Returns:
- The metadata.
-
getRdfBeanPropertyMeta
Description copied from interface:RdfMetaProviderReturns the language-specific metadata on the specified bean property.- Specified by:
getRdfBeanPropertyMetain interfaceRdfMetaProvider- Parameters:
bpm- The bean property to return the metadata on.- Returns:
- The metadata.
-
getRdfClassMeta
Description copied from interface:RdfMetaProviderReturns the language-specific metadata on the specified class.- Specified by:
getRdfClassMetain interfaceRdfMetaProvider- Parameters:
cm- The class to return the metadata on.- Returns:
- The metadata.
-
getXmlBeanMeta
Description copied from interface:XmlMetaProviderReturns the language-specific metadata on the specified bean.- Specified by:
getXmlBeanMetain interfaceXmlMetaProvider- Parameters:
bm- The bean to return the metadata on.- Returns:
- The metadata.
-
getXmlBeanPropertyMeta
Description copied from interface:XmlMetaProviderReturns the language-specific metadata on the specified bean property.- Specified by:
getXmlBeanPropertyMetain interfaceXmlMetaProvider- Parameters:
bpm- The bean property to return the metadata on.- Returns:
- The metadata.
-
getXmlClassMeta
Description copied from interface:XmlMetaProviderReturns the language-specific metadata on the specified class.- Specified by:
getXmlClassMetain interfaceXmlMetaProvider- Parameters:
cm- The class to return the metadata on.- Returns:
- The metadata.
-
getLanguage
Returns the RDF language.- Returns:
- The RDF language.
-
getRdfParser
Returns the delegated RdfParser.- Returns:
- The delegated RdfParser.
-
getCollectionFormat
Collection format - delegates to RdfParser. -
getJuneauNs
Juneau namespace - delegates to RdfParser. -
getJuneauBpNs
Juneau BP namespace - delegates to RdfParser. -
isLooseCollections
Loose collections - delegates to RdfParser. -
isTrimWhitespace
Trim whitespace - delegates to RdfParser.
-