Java Doc for RandomAccessFileOrArray.java in  » PDF » pdf-itext » com » lowagie » text » pdf » 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 » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.RandomAccessFileOrArray

RandomAccessFileOrArray
public class RandomAccessFileOrArray implements DataInput(Code)
An implementation of a RandomAccessFile for input only that accepts a file or a byte array as data source.
author:
   Paulo Soares (psoares@consiste.pt)


Field Summary
 bytearrayIn
    
 intarrayInPtr
    
 byteback
    
 Stringfilename
    
 booleanisBack
    
 booleanplainRandomAccess
    
 MappedRandomAccessFilerf
    
 RandomAccessFiletrf
    

Constructor Summary
public  RandomAccessFileOrArray(String filename)
    
public  RandomAccessFileOrArray(String filename, boolean forceRead, boolean plainRandomAccess)
    
public  RandomAccessFileOrArray(URL url)
    
public  RandomAccessFileOrArray(InputStream is)
    
public  RandomAccessFileOrArray(byte arrayIn)
    
public  RandomAccessFileOrArray(RandomAccessFileOrArray file)
    

Method Summary
public static  byte[]InputStreamToArray(InputStream is)
    
public  voidclose()
    
public  intgetFilePointer()
    
public  intgetStartOffset()
     Getter for property startOffset.
protected  voidinsureOpen()
    
public  booleanisOpen()
    
public  intlength()
    
public  voidpushBack(byte b)
    
public  voidreOpen()
    
public  intread()
    
public  intread(byte[] b, int off, int len)
    
public  intread(byte b)
    
public  booleanreadBoolean()
    
public  bytereadByte()
    
public  charreadChar()
    
final public  charreadCharLE()
     Reads a Unicode character from this stream in little-endian order.
public  doublereadDouble()
    
final public  doublereadDoubleLE()
    
public  floatreadFloat()
    
final public  floatreadFloatLE()
    
public  voidreadFully(byte b)
    
public  voidreadFully(byte b, int off, int len)
    
public  intreadInt()
    
final public  intreadIntLE()
     Reads a signed 32-bit integer from this stream in little-endian order.
public  StringreadLine()
    
public  longreadLong()
    
final public  longreadLongLE()
    
public  shortreadShort()
    
final public  shortreadShortLE()
     Reads a signed 16-bit number from this stream in little-endian order.
public  StringreadUTF()
    
public  intreadUnsignedByte()
    
final public  longreadUnsignedInt()
     Reads an unsigned 32-bit integer from this stream.
final public  longreadUnsignedIntLE()
    
public  intreadUnsignedShort()
    
final public  intreadUnsignedShortLE()
     Reads an unsigned 16-bit number from this stream in little-endian order.
public  voidseek(int pos)
    
public  voidseek(long pos)
    
public  voidsetStartOffset(int startOffset)
     Setter for property startOffset.
public  longskip(long n)
    
public  intskipBytes(int n)
    

Field Detail
arrayIn
byte arrayIn(Code)



arrayInPtr
int arrayInPtr(Code)



back
byte back(Code)



filename
String filename(Code)



isBack
boolean isBack(Code)



plainRandomAccess
boolean plainRandomAccess(Code)



rf
MappedRandomAccessFile rf(Code)



trf
RandomAccessFile trf(Code)




Constructor Detail
RandomAccessFileOrArray
public RandomAccessFileOrArray(String filename) throws IOException(Code)



RandomAccessFileOrArray
public RandomAccessFileOrArray(String filename, boolean forceRead, boolean plainRandomAccess) throws IOException(Code)



RandomAccessFileOrArray
public RandomAccessFileOrArray(URL url) throws IOException(Code)



RandomAccessFileOrArray
public RandomAccessFileOrArray(InputStream is) throws IOException(Code)



RandomAccessFileOrArray
public RandomAccessFileOrArray(byte arrayIn)(Code)



RandomAccessFileOrArray
public RandomAccessFileOrArray(RandomAccessFileOrArray file)(Code)




Method Detail
InputStreamToArray
public static byte[] InputStreamToArray(InputStream is) throws IOException(Code)



close
public void close() throws IOException(Code)



getFilePointer
public int getFilePointer() throws IOException(Code)



getStartOffset
public int getStartOffset()(Code)
Getter for property startOffset. Value of property startOffset.



insureOpen
protected void insureOpen() throws IOException(Code)



isOpen
public boolean isOpen()(Code)



length
public int length() throws IOException(Code)



pushBack
public void pushBack(byte b)(Code)



reOpen
public void reOpen() throws IOException(Code)



read
public int read() throws IOException(Code)



read
public int read(byte[] b, int off, int len) throws IOException(Code)



read
public int read(byte b) throws IOException(Code)



readBoolean
public boolean readBoolean() throws IOException(Code)



readByte
public byte readByte() throws IOException(Code)



readChar
public char readChar() throws IOException(Code)



readCharLE
final public char readCharLE() throws IOException(Code)
Reads a Unicode character from this stream in little-endian order. This method reads two bytes from the stream, starting at the current stream pointer. If the bytes read, in order, are b1 and b2, where 0 <= b1, b2 <= 255, then the result is equal to:
 (char)((b2 << 8) | b1)
 

This method blocks until the two bytes are read, the end of the stream is detected, or an exception is thrown. the next two bytes of this stream as a Unicode character.
exception:
  EOFException - if this stream reaches the end before readingtwo bytes.
exception:
  IOException - if an I/O error occurs.




readDouble
public double readDouble() throws IOException(Code)



readDoubleLE
final public double readDoubleLE() throws IOException(Code)



readFloat
public float readFloat() throws IOException(Code)



readFloatLE
final public float readFloatLE() throws IOException(Code)



readFully
public void readFully(byte b) throws IOException(Code)



readFully
public void readFully(byte b, int off, int len) throws IOException(Code)



readInt
public int readInt() throws IOException(Code)



readIntLE
final public int readIntLE() throws IOException(Code)
Reads a signed 32-bit integer from this stream in little-endian order. This method reads 4 bytes from the stream, starting at the current stream pointer. If the bytes read, in order, are b1, b2, b3, and b4, where 0 <= b1, b2, b3, b4 <= 255, then the result is equal to:
 (b4 << 24) | (b3 << 16) + (b2 << 8) + b1
 

This method blocks until the four bytes are read, the end of the stream is detected, or an exception is thrown. the next four bytes of this stream, interpreted as anint.
exception:
  EOFException - if this stream reaches the end before readingfour bytes.
exception:
  IOException - if an I/O error occurs.




readLine
public String readLine() throws IOException(Code)



readLong
public long readLong() throws IOException(Code)



readLongLE
final public long readLongLE() throws IOException(Code)



readShort
public short readShort() throws IOException(Code)



readShortLE
final public short readShortLE() throws IOException(Code)
Reads a signed 16-bit number from this stream in little-endian order. The method reads two bytes from this stream, starting at the current stream pointer. If the two bytes read, in order, are b1 and b2, where each of the two values is between 0 and 255, inclusive, then the result is equal to:
 (short)((b2 << 8) | b1)
 

This method blocks until the two bytes are read, the end of the stream is detected, or an exception is thrown. the next two bytes of this stream, interpreted as a signed16-bit number.
exception:
  EOFException - if this stream reaches the end before readingtwo bytes.
exception:
  IOException - if an I/O error occurs.




readUTF
public String readUTF() throws IOException(Code)



readUnsignedByte
public int readUnsignedByte() throws IOException(Code)



readUnsignedInt
final public long readUnsignedInt() throws IOException(Code)
Reads an unsigned 32-bit integer from this stream. This method reads 4 bytes from the stream, starting at the current stream pointer. If the bytes read, in order, are b1, b2, b3, and b4, where 0 <= b1, b2, b3, b4 <= 255, then the result is equal to:
 (b1 << 24) | (b2 << 16) + (b3 << 8) + b4
 

This method blocks until the four bytes are read, the end of the stream is detected, or an exception is thrown. the next four bytes of this stream, interpreted as along.
exception:
  EOFException - if this stream reaches the end before readingfour bytes.
exception:
  IOException - if an I/O error occurs.




readUnsignedIntLE
final public long readUnsignedIntLE() throws IOException(Code)



readUnsignedShort
public int readUnsignedShort() throws IOException(Code)



readUnsignedShortLE
final public int readUnsignedShortLE() throws IOException(Code)
Reads an unsigned 16-bit number from this stream in little-endian order. This method reads two bytes from the stream, starting at the current stream pointer. If the bytes read, in order, are b1 and b2, where 0 <= b1, b2 <= 255, then the result is equal to:
 (b2 << 8) | b1
 

This method blocks until the two bytes are read, the end of the stream is detected, or an exception is thrown. the next two bytes of this stream, interpreted as anunsigned 16-bit integer.
exception:
  EOFException - if this stream reaches the end before readingtwo bytes.
exception:
  IOException - if an I/O error occurs.




seek
public void seek(int pos) throws IOException(Code)



seek
public void seek(long pos) throws IOException(Code)



setStartOffset
public void setStartOffset(int startOffset)(Code)
Setter for property startOffset.
Parameters:
  startOffset - New value of property startOffset.



skip
public long skip(long n) throws IOException(Code)



skipBytes
public int skipBytes(int n) throws IOException(Code)



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.