org.mesopotamia
Class FileSource
java.lang.Object
org.mesopotamia.FileSource
- All Implemented Interfaces:
- Source
public class FileSource
- extends java.lang.Object
- implements Source
java.io.File based Source for parsing
- Author:
- sourceeater
Constructor Summary |
FileSource(java.io.File aFileSource,
java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileSource
public FileSource(java.io.File aFileSource,
java.lang.String path)
getSize
public long getSize()
- Specified by:
getSize
in interface Source
- Returns:
- source size
getDigest
public java.lang.String getDigest(java.security.MessageDigest digest)
throws MesopotamiaException
- Specified by:
getDigest
in interface Source
- Returns:
- source digest
- Throws:
MesopotamiaException
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interface Source
- Returns:
- Relative source path in repository hierarchy
getName
public java.lang.String getName()
- Specified by:
getName
in interface Source
- Returns:
- Source name
get
public java.lang.Object get()
- Specified by:
get
in interface Source
- Returns:
- Underlying source object e.g. java.io.File, Dom document, ...
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface Source
- Returns:
- last modification time.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005 Hammurapi Group. All Rights Reserved.