public class PathFontStreamProvider extends Object implements FontStreamProvider, com.levigo.jadice.fontmanager.internal.ProvidesCacheable
Path
.Constructor and Description |
---|
PathFontStreamProvider(Path path)
Creates an instance supplying the location of a font file.
|
Modifier and Type | Method and Description |
---|---|
SeekableInputStream |
get()
Provides an instance of
T . |
Object |
getCacheKey() |
Path |
getPath() |
String |
toString() |
protected final Path path
public PathFontStreamProvider(Path path)
path
- Location of the stream to be usedpublic SeekableInputStream get() throws IOException
Provider
T
. Must never return null
. Whether this method may be
called more that one time is not specified. Supporting multiple calls is up to the
implementation.get
in interface Provider<SeekableInputStream,IOException>
IOException
public Object getCacheKey()
getCacheKey
in interface com.levigo.jadice.fontmanager.internal.ProvidesCacheable
Copyright © 2024 levigo holding gmbh. All rights reserved.