Java Doc for AxionFileSystem.java in  » Database-DBMS » axion » org » axiondb » io » 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 » Database DBMS » axion » org.axiondb.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.axiondb.io.AxionFileSystem

AxionFileSystem
public class AxionFileSystem (Code)
Axion File System, creates file input/output streams and wraps then into a custom BufferedDataStream, which improves perfermance significantly.
version:
   $Revision: 1.8 $ $Date: 2005/12/20 18:32:58 $
author:
   Ahimanikya Satapathy

Inner Class :public class PidxList
Inner Class :class AxionFileInputStream extends AxionInputStream
Inner Class :class AxionFileOutputStream extends AxionOutputStream


Constructor Summary
public  AxionFileSystem()
    

Method Summary
public  voidcloseInputStream(InputStream in)
    
public  voidcloseOutputStream(OutputStream out)
    
public  BufferedDataOutputStreamcreateBufferedDOS(File file)
     create a new file and wrap wrap the stream with BufferedDataOutputStream which improves perfermance significantly.
public  DataOutputStreamcreateDataOutputSteam(File file)
    
public  booleancreateNewFile(File file)
    
public  ObjectOutputStreamcreateObjectOutputSteam(File file)
    
public  PidxListnewPidxList(int count, File file, boolean readonly)
    
public  AxionInputStreamopen(File file)
     Open the file in read only mode.
public  AxionOutputStreamopen(File file, boolean overwrite)
     Open file in append mode if overwrite is false, otherwise create new file.
public  AxionOutputStreamopenAppend(File file)
     Open file in append mode, position will be set to the end of file.
public  BufferedDataInputStreamopenBufferedDIS(File file)
     Open file in read only mode, position will be set to 0.
public  BufferedDataOutputStreamopenBufferedDOS(File file, long startPos)
     Open a outputsteam and points the file pointer to a given start position in the file.
public  BufferedDataOutputStreamopenBufferedDOSAppend(File file, int bufferSize)
     Open file in append mode, position will be set to the end of file.
public  DataInputStreamopenDataInputSteam(File file)
    
public  ObjectInputStreamopenObjectInputSteam(File file)
    
public  IntListparseIntFile(File file)
     Reads a list of int values from a file.
public  PidxListparseLongPidx(File file, boolean readOnly)
     Reads a list of long values from a file.
public  PidxListparseUnsignedIntPidx(File file, boolean readOnly)
    
public  voidreadAll(File file, byte[] rawdata)
    
public  voidwriteIntFile(File file, IntList list)
     Writes a list of int values to a file.
public  voidwriteUnsignedInt(BufferedDataOutputStream out, long offset, int value)
     Updates an UnsignedInt value to a file.
public  voidwriteUnsignedIntFile(File file, LongList list)
     Writes a list of long values to a file.


Constructor Detail
AxionFileSystem
public AxionFileSystem()(Code)




Method Detail
closeInputStream
public void closeInputStream(InputStream in)(Code)



closeOutputStream
public void closeOutputStream(OutputStream out)(Code)



createBufferedDOS
public BufferedDataOutputStream createBufferedDOS(File file) throws AxionException(Code)
create a new file and wrap wrap the stream with BufferedDataOutputStream which improves perfermance significantly.



createDataOutputSteam
public DataOutputStream createDataOutputSteam(File file) throws IOException(Code)



createNewFile
public boolean createNewFile(File file) throws AxionException(Code)



createObjectOutputSteam
public ObjectOutputStream createObjectOutputSteam(File file) throws IOException(Code)



newPidxList
public PidxList newPidxList(int count, File file, boolean readonly) throws AxionException(Code)



open
public AxionInputStream open(File file) throws IOException(Code)
Open the file in read only mode.



open
public AxionOutputStream open(File file, boolean overwrite) throws IOException(Code)
Open file in append mode if overwrite is false, otherwise create new file.



openAppend
public AxionOutputStream openAppend(File file) throws IOException(Code)
Open file in append mode, position will be set to the end of file. Creates the file if does not exist yet.



openBufferedDIS
public BufferedDataInputStream openBufferedDIS(File file) throws AxionException(Code)
Open file in read only mode, position will be set to 0. seek can be used to perferm random access. This will wrap the stream with BufferedDataInputStream which improves perfermance significantly.



openBufferedDOS
public BufferedDataOutputStream openBufferedDOS(File file, long startPos) throws AxionException(Code)
Open a outputsteam and points the file pointer to a given start position in the file.



openBufferedDOSAppend
public BufferedDataOutputStream openBufferedDOSAppend(File file, int bufferSize) throws AxionException(Code)
Open file in append mode, position will be set to the end of file. Creates the file if does not exist yet. This will wrap the stream with BufferedDataOutputStream which improves perfermance significantly.



openDataInputSteam
public DataInputStream openDataInputSteam(File file) throws IOException(Code)



openObjectInputSteam
public ObjectInputStream openObjectInputSteam(File file) throws IOException(Code)



parseIntFile
public IntList parseIntFile(File file) throws AxionException(Code)
Reads a list of int values from a file.
Parameters:
  file - the Fileto read from



parseLongPidx
public PidxList parseLongPidx(File file, boolean readOnly) throws AxionException(Code)
Reads a list of long values from a file.
Parameters:
  file - the Fileto read from



parseUnsignedIntPidx
public PidxList parseUnsignedIntPidx(File file, boolean readOnly) throws AxionException(Code)



readAll
public void readAll(File file, byte[] rawdata) throws AxionException(Code)



writeIntFile
public void writeIntFile(File file, IntList list) throws AxionException(Code)
Writes a list of int values to a file.
Parameters:
  file - the Fileto write to



writeUnsignedInt
public void writeUnsignedInt(BufferedDataOutputStream out, long offset, int value) throws AxionException(Code)
Updates an UnsignedInt value to a file.
Parameters:
  raf - the Fileto append to
Parameters:
  offset - the pidx file offset to write
Parameters:
  value - data file pointer for a given pidx offset



writeUnsignedIntFile
public void writeUnsignedIntFile(File file, LongList list) throws AxionException(Code)
Writes a list of long values to a file.
Parameters:
  file - the Fileto write to



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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