org.mesopotamia
Interface Source

All Known Implementing Classes:
FileSource

public interface Source

Source for parsing.

Author:
Pavel Vlasov

Method Summary
 java.lang.Object get()
           
 java.lang.String getDigest(java.security.MessageDigest digest)
           
 long getLastModified()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 long getSize()
           
 

Method Detail

getSize

long getSize()
Returns:
source size

getDigest

java.lang.String getDigest(java.security.MessageDigest digest)
                           throws MesopotamiaException
Parameters:
Message - digest instance
Returns:
source digest
Throws:
MesopotamiaException

getPath

java.lang.String getPath()
Returns:
Relative source path in repository hierarchy

getName

java.lang.String getName()
Returns:
Source name

get

java.lang.Object get()
Returns:
Underlying source object e.g. java.io.File, Dom document, ...

getLastModified

long getLastModified()
Returns:
last modification time.


Copyright © 2005 Hammurapi Group. All Rights Reserved.