2010-09-26 20:59:14 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2010, Jim Teeuwen.
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
This code is subject to a 1-clause BSD license.
|
|
|
|
The contents of which can be found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2009-11-23 04:16:27 +00:00
|
|
|
package xmlx
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
import "io"
|
|
|
|
|
|
|
|
type ILoader interface {
|
2010-05-06 03:36:48 +00:00
|
|
|
LoadUrl(string) os.Error
|
|
|
|
LoadFile(string) os.Error
|
|
|
|
LoadString(string) os.Error
|
|
|
|
LoadStream(*io.Reader) os.Error
|
2009-11-23 04:16:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ISaver interface {
|
2010-05-06 03:36:48 +00:00
|
|
|
SaveFile(string) os.Error
|
|
|
|
SaveString(string) (string, os.Error)
|
|
|
|
SaveStream(*io.Writer) os.Error
|
2009-11-23 04:16:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ILoaderSaver interface {
|
2010-05-06 03:36:48 +00:00
|
|
|
ILoader
|
|
|
|
ISaver
|
2009-11-23 04:16:27 +00:00
|
|
|
}
|