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()
Resource
getLastModified
in class Resource
public String getLocation()
Resource
getLocation
in class Resource
public String getPath()
Resource
public String getString()
public InputStream openContents()
Resource
openContents
in class Resource
public boolean wasRerooted()
wasRerooted
in class Resource
protected void touch()
Copyright © 2018. All rights reserved.