
public abstract class MockResource extends Resource
Resource.| Constructor and Description |
|---|
MockResource(String path) |
| Modifier and Type | Method and Description |
|---|---|
abstract CharSequence |
getContent() |
long |
getLastModified()
Returns the last modified time of the compilation unit.
|
String |
getLocation()
Returns the URL-like location of the resource.
|
String |
getPath()
Returns the full abstract path of the resource.
|
String |
getString() |
InputStream |
openContents()
Returns the contents of the resource.
|
protected void |
touch() |
boolean |
wasRerooted() |
public MockResource(String path)
public abstract CharSequence getContent()
public long getLastModified()
ResourcegetLastModified in class Resourcepublic String getLocation()
ResourcegetLocation in class Resourcepublic String getPath()
Resourcepublic String getString()
public InputStream openContents()
ResourceopenContents in class Resourcepublic boolean wasRerooted()
wasRerooted in class Resourceprotected void touch()
Copyright © 2018. All rights reserved.