Class DelegatedYinTextSource
java.lang.Object
com.google.common.io.ByteSource
org.opendaylight.yangtools.yang.model.api.source.YinTextSource
org.opendaylight.yangtools.yang.model.spi.source.DelegatedYinTextSource
- All Implemented Interfaces:
Delegator<com.google.common.io.ByteSource>,Immutable,SourceRepresentation,YinSourceRepresentation
A
YinTextSource delegating to a ByteSource.-
Constructor Summary
ConstructorsConstructorDescriptionDelegatedYinTextSource(SourceIdentifier sourceId, com.google.common.io.ByteSource delegate) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) final com.google.common.io.ByteSourcefinal InputStreamfinal SourceIdentifiersourceId()final @NonNull StringMethods inherited from class org.opendaylight.yangtools.yang.model.api.source.YinTextSource
getType, toStringMethods inherited from class com.google.common.io.ByteSource
asCharSource, concat, concat, concat, contentEquals, copyTo, copyTo, empty, hash, isEmpty, openBufferedStream, read, read, size, sizeIfKnown, slice, wrap
-
Constructor Details
-
DelegatedYinTextSource
Default constructor.- Parameters:
sourceId-SourceIdentifierof the resulting schema sourcedelegate- backingByteSourceinstance
-
-
Method Details
-
openStream
- Specified by:
openStreamin classcom.google.common.io.ByteSource- Throws:
IOException
-
symbolicName
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) - Overrides:
addToStringAttributesin classYinTextSource
-
sourceId
- Specified by:
sourceIdin interfaceSourceRepresentation
-
getDelegate
public final com.google.common.io.ByteSource getDelegate()- Specified by:
getDelegatein interfaceDelegator<T>
-