Class URLYangTextSource
java.lang.Object
com.google.common.io.CharSource
org.opendaylight.yangtools.yang.model.api.source.YangTextSource
org.opendaylight.yangtools.yang.model.spi.source.URLYangTextSource
- All Implemented Interfaces:
Delegator<URL>,Immutable,SourceRepresentation,YangSourceRepresentation
A
YangTextSource backed by a URL.-
Constructor Summary
ConstructorsConstructorDescriptionURLYangTextSource(URL url) Utility constructor.URLYangTextSource(SourceIdentifier sourceId, URL url, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) final URLfinal Readerfinal SourceIdentifiersourceId()final @NonNull StringMethods inherited from class org.opendaylight.yangtools.yang.model.api.source.YangTextSource
getType, toStringMethods inherited from class com.google.common.io.CharSource
asByteSource, concat, concat, concat, copyTo, copyTo, empty, forEachLine, isEmpty, length, lengthIfKnown, lines, openBufferedStream, read, readFirstLine, readLines, readLines, wrap
-
Constructor Details
-
URLYangTextSource
-
URLYangTextSource
Utility constructor. TheSourceIdentifieris derived fromURL.getPath()and the character set is assumed to be UTF-8.- Parameters:
url- backingURL
-
-
Method Details
-
openStream
- Specified by:
openStreamin classcom.google.common.io.CharSource- Throws:
IOException
-
symbolicName
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) - Overrides:
addToStringAttributesin classYangTextSource
-
sourceId
- Specified by:
sourceIdin interfaceSourceRepresentation
-
getDelegate
- Specified by:
getDelegatein interfaceDelegator<T>
-