2009-11-23 04:16:27 +00:00
|
|
|
package xmlx
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
import "io"
|
|
|
|
|
|
|
|
type ILoader interface {
|
2009-11-25 01:50:06 +00:00
|
|
|
LoadUrl(string) os.Error;
|
2009-11-23 04:16:27 +00:00
|
|
|
LoadFile(string) os.Error;
|
|
|
|
LoadString(string) os.Error;
|
|
|
|
LoadStream(*io.Reader) os.Error;
|
|
|
|
}
|
|
|
|
|
|
|
|
type ISaver interface {
|
|
|
|
SaveFile(string) os.Error;
|
|
|
|
SaveString(string) (string, os.Error);
|
|
|
|
SaveStream(*io.Writer) os.Error;
|
|
|
|
}
|
|
|
|
|
|
|
|
type ILoaderSaver interface {
|
|
|
|
ILoader;
|
|
|
|
ISaver;
|
|
|
|
}
|