public class ResourceContentProvider extends java.lang.Object implements ContentProvider
Beware that the manual is unaware of resource domains. In other words, two paths that are identical except for their resource domain will be the same, as seen from the manual. This could be an issue if you add multiple ResourceContentProviders to the same manual.
| Constructor and Description |
|---|
ResourceContentProvider(java.lang.String resourceDomain) |
ResourceContentProvider(java.lang.String resourceDomain,
java.lang.String basePath) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.lang.String> |
getContent(java.lang.String path)
Called to get the content of a path pointed to by the specified path.
|
public ResourceContentProvider(java.lang.String resourceDomain,
java.lang.String basePath)
public ResourceContentProvider(java.lang.String resourceDomain)
@Nullable public java.lang.Iterable<java.lang.String> getContent(java.lang.String path)
ContentProviderThis should provide an iterable over the lines of a Markdown document (with the formatting provided by the in-game manual, which is a small subset of "normal" Markdown).
If this provider cannot provide the requested path, it should return null to indicate so, allowing other providers to be queried.
getContent in interface ContentProviderpath - the path to the manual page we're looking for.