java.lang.Object
com.telenav.kivakit.core.messaging.broadcasters.Multicaster
com.telenav.kivakit.core.messaging.repeaters.BaseRepeater
com.telenav.kivakit.resource.reading.BaseReadableResource
- All Implemented Interfaces:
Broadcaster
,Listener
,Repeater
,Transceiver
,CreatedAt
,Modifiable
,ModifiedAt
,ByteSized
,Receiver
,Transmitter
,NamedObject
,StringSource
,Deletable
,Readable
,ReadableResource
,Resource
,Resourceful
,ResourcePathed
,UriIdentified
- Direct Known Subclasses:
BaseNetworkResource
,BaseWritableResource
,InputResource
,PackageResource
,ResourceSection
,StringResource
A base implementation of the
Resource
interface. Adds the following methods:
codec(Codec)
- Applies aCodec
to this resource
All other methods are documented in the Resource
superinterface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.telenav.kivakit.resource.Resource
Resource.Can, Resource.Converter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
For serializationprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionfinal Charset
charset()
protected void
codec()
void
copyTo
(WritableResource destination, CopyMode mode, ProgressReporter reporter) Copies the data in this resource to the destination.boolean
delete()
Returns true if the object was deleted, false otherwisevoid
Remove any materialized local copy if this is a remote resource that's been cachedboolean
boolean
exists()
int
hashCode()
materialized
(ProgressReporter reporter) openForReading
(ProgressReporter reporter) Opens something that can be read, returning an input stream.path()
StringPath to this resourcetoString()
Methods inherited from class com.telenav.kivakit.core.messaging.repeaters.BaseRepeater
onMessage, onReceive
Methods inherited from class com.telenav.kivakit.core.messaging.broadcasters.Multicaster
addListener, clearListeners, debugClassContext, debugCodeContext, debugCodeContext, hasListeners, isDeaf, isTransmitting, listenerChain, listeners, listenerTree, messageSource, messageSource, objectName, removeListener, transmit, withoutTransmitting
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.telenav.kivakit.core.messaging.Broadcaster
addListener, addListener, clearListeners, copyListeners, hasListeners, listeners, messageSource, messageSource, onTransmit, onTransmitted, onTransmitting, removeListener, silence, transmit, transmit, transmitAll
Methods inherited from interface com.telenav.kivakit.core.value.count.ByteSized
isLargerThan, isSmallerThan
Methods inherited from interface com.telenav.kivakit.core.time.CreatedAt
age, createdAt, wasCreatedAfter, wasCreatedBefore
Methods inherited from interface com.telenav.kivakit.core.messaging.Listener
isDeaf, listenTo, listenTo, onMessage
Methods inherited from interface com.telenav.kivakit.core.time.Modifiable
lastModified
Methods inherited from interface com.telenav.kivakit.core.time.ModifiedAt
modifiedAt, wasChangedAfter, wasChangedBefore
Methods inherited from interface com.telenav.kivakit.interfaces.naming.NamedObject
hasSyntheticName, objectName, objectName
Methods inherited from interface com.telenav.kivakit.resource.reading.Readable
isReadable, onOpenForReading, openForReading, sizeInBytes
Methods inherited from interface com.telenav.kivakit.resource.reading.ReadableResource
asStringResource, reader, reader, reader
Methods inherited from interface com.telenav.kivakit.interfaces.messaging.Receiver
isReceiving
Methods inherited from interface com.telenav.kivakit.core.messaging.Repeater
isRepeating, onReceive, receive
Methods inherited from interface com.telenav.kivakit.resource.Resource
asString, asWritable, can, can, endsWith, ensureExists, hasParent, isEmpty, isLocal, isMaterializable, isOlderThan, isPackaged, isRemote, isSame, parent, relativeTo, renameTo, resource, safeCopyTo, safeCopyTo, safeCopyTo, safeCopyTo
Methods inherited from interface com.telenav.kivakit.resource.ResourcePathed
asJavaFile, baseName, compoundExtension, extension, fileName, hasExtension, matches, uri, url
Methods inherited from interface com.telenav.kivakit.core.messaging.Transceiver
announce, debug, debugClassContext, debugCodeContext, debugCodeContext, fatal, fatal, glitch, glitch, glitch, glitch, halted, halted, ifDebug, illegalArgument, illegalState, illegalState, information, isDebugOn, narrate, problem, problem, problem, problem, problemIfNull, quibble, quibble, quibble, quibble, trace, trace, trace, trace, warning, warning, warning, warning
Methods inherited from interface com.telenav.kivakit.interfaces.messaging.Transmitter
isTransmitting, withoutTransmitting
-
Constructor Details
-
BaseReadableResource
protected BaseReadableResource()For serialization
-
-
Method Details
-
charset
- Specified by:
charset
in interfaceReadableResource
- Returns:
- The charset used by this resource
-
codec
-
delete
public boolean delete()Description copied from interface:Deletable
Returns true if the object was deleted, false otherwise -
dematerialize
public void dematerialize()Remove any materialized local copy if this is a remote resource that's been cached- Specified by:
dematerialize
in interfaceResource
-
equals
-
exists
public boolean exists() -
hashCode
public int hashCode() -
path
Description copied from interface:Resource
StringPath to this resource- Specified by:
path
in interfaceResource
- Specified by:
path
in interfaceResourcePathed
- Returns:
- The path to this object
-
toString
-
charset
-