net.sf.sqs_xml.editor.base.source
Class Source

java.lang.Object
  extended bynet.sf.sqs_xml.editor.base.source.Source
Direct Known Subclasses:
DOMTreeSource

public abstract class Source
extends java.lang.Object

Author:
hiroya

Constructor Summary
Source()
           
Source(java.io.File file)
           
Source(java.net.URL url, boolean readonly, java.lang.String title)
           
 
Method Summary
abstract  java.io.InputStream createInputStream()
           
 boolean equals(java.lang.Object obj)
           
 java.io.File getFile()
           
 java.lang.String getTitle()
           
 java.net.URL getURL()
           
abstract  void initialize(java.io.InputStream stream)
           
 boolean isDirty()
           
 boolean isModified()
           
 boolean isReadOnly()
           
 long lastModified()
           
 void save()
           
 void setDirty(boolean dirty)
           
 void setFile(java.io.File file)
           
 void setReadOnly(boolean readonly)
           
 java.lang.String toString()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Source

public Source()
       throws SourceException

Source

public Source(java.io.File file)
       throws SourceException

Source

public Source(java.net.URL url,
              boolean readonly,
              java.lang.String title)
       throws SourceException
Method Detail

toString

public java.lang.String toString()

initialize

public abstract void initialize(java.io.InputStream stream)
                         throws SourceException
Throws:
SourceException

createInputStream

public abstract java.io.InputStream createInputStream()
                                               throws java.io.IOException
Throws:
java.io.IOException

update

public void update()

lastModified

public long lastModified()

isModified

public boolean isModified()

setFile

public void setFile(java.io.File file)

equals

public boolean equals(java.lang.Object obj)

getFile

public java.io.File getFile()

getURL

public java.net.URL getURL()

getTitle

public java.lang.String getTitle()

isDirty

public boolean isDirty()

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readonly)

setDirty

public void setDirty(boolean dirty)

save

public void save()
          throws java.io.IOException
Throws:
java.io.IOException