Java Doc for Saver.java in  » Science » weka » weka » core » converters » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » weka » weka.core.converters 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


weka.core.converters.Saver

All known Subclasses:   weka.core.converters.AbstractSaver,
Saver
public interface Saver extends Serializable(Code)
Interface to something that can save Instances to an output destination in some format.
author:
   Mark Hall (mhall@cs.waikato.ac.nz)
author:
   Stefan Mutter (mutter@cs.waikato.ac.nz)
version:
   $Revision: 1.3 $


Field Summary
final static  intBATCH
    
final static  intINCREMENTAL
    
final static  intNONE
    


Method Summary
 StringfilePrefix()
     Gets the file prefix This method is used in the KnowledgeFlow GUI.
 StringgetFileExtension()
    
public  intgetWriteMode()
    
 StringretrieveDir()
     Gets the driectory of the output file This method is used in the KnowledgeFlow GUI.
 voidsetDestination(File file)
     Resets the Saver object and sets the destination to be the supplied File object.
 voidsetDestination(OutputStream output)
     Resets the Saver object and sets the destination to be the supplied InputStream.
 voidsetDir(String dir)
     Sets the directory of the output file.
public  voidsetDirAndPrefix(String relationName, String add)
     Sets the file prefix and the directory.
 voidsetFile(File file)
    
 voidsetFilePrefix(String prefix)
     Sets the file prefix.
 voidsetInstances(Instances instances)
    
 voidsetRetrieval(int mode)
    
 voidwriteBatch()
    
 voidwriteIncremental(Instance inst)
     Writes to a destination in incremental mode.

Field Detail
BATCH
final static int BATCH(Code)



INCREMENTAL
final static int INCREMENTAL(Code)



NONE
final static int NONE(Code)
The retrieval modes





Method Detail
filePrefix
String filePrefix() throws Exception(Code)
Gets the file prefix This method is used in the KnowledgeFlow GUI. the prefix of the file name
throws:
  Exception - exception if a Saver not implementing FileSourcedConverter is used.



getFileExtension
String getFileExtension() throws Exception(Code)
Gets the file extension a string conatining the file extension (including the '.')
throws:
  Exception - exception if a Saver not implementing FileSourcedConverter is used.



getWriteMode
public int getWriteMode()(Code)
Gets the write mode an integer representing the write mode



retrieveDir
String retrieveDir() throws IOException(Code)
Gets the driectory of the output file This method is used in the KnowledgeFlow GUI. the directory as a string
throws:
  IOException - exception if a Saver not implementing FileSourcedConverter is used.



setDestination
void setDestination(File file) throws IOException(Code)
Resets the Saver object and sets the destination to be the supplied File object.
Parameters:
  file - the File
exception:
  IOException - if an error occurssupport loading from a File.
public_normal_behaviorrequires: file != null&& (* file exists *);modifiable: model_sourceSupplied, model_structureDetermined;ensures: model_sourceSupplied == true && model_structureDetermined == false;alsopublic_exceptional_behaviorrequires: file == null|| (* file does not exist *);signals: (IOException);



setDestination
void setDestination(OutputStream output) throws IOException(Code)
Resets the Saver object and sets the destination to be the supplied InputStream.
Parameters:
  output - the output stream
exception:
  IOException - if this Loader doesn'tsupport loading from a File.



setDir
void setDir(String dir) throws IOException(Code)
Sets the directory of the output file. This method is used in the KnowledgeFlow GUI.
Parameters:
  dir - a string containing the path and name of the directory
throws:
  IOException - exception if a Saver not implementing FileSourcedConverter is used.



setDirAndPrefix
public void setDirAndPrefix(String relationName, String add) throws IOException(Code)
Sets the file prefix and the directory. This method is used in the KnowledgeFlow GUI.
Parameters:
  relationName - the name of the realtion to be saved
Parameters:
  add - additional String for the file name
throws:
  IOException - exception if a Saver not implementing FileSourcedConverter is used.



setFile
void setFile(File file) throws IOException(Code)
Sets the output file
Parameters:
  file - the output file
throws:
  IOException - exception if new output file cannot be set



setFilePrefix
void setFilePrefix(String prefix) throws Exception(Code)
Sets the file prefix. This method is used in the KnowledgeFlow GUI.
Parameters:
  prefix - the prefix of the file name
throws:
  Exception - exception if a Saver not implementing FileSourcedConverter is used.



setInstances
void setInstances(Instances instances)(Code)
Sets the instances to be saved
Parameters:
  instances - the instances



setRetrieval
void setRetrieval(int mode)(Code)
Sets the retrieval mode
Parameters:
  mode - an integer representing a retrieval mode



writeBatch
void writeBatch() throws IOException(Code)
Writes to a destination in batch mode
throws:
  IOException - throws exection if writting in batch mode is not possible



writeIncremental
void writeIncremental(Instance inst) throws IOException(Code)
Writes to a destination in incremental mode. If the instance is null, the outputfile will be closed.
Parameters:
  inst - the instance to write, if null the output file is closed
throws:
  IOException - throws exception if incremental writting is not possible



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.