Java Doc for LeadPipeInputStream.java in  » Build » ANT » org » apache » tools » ant » util » 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 » Build » ANT » org.apache.tools.ant.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.io.PipedInputStream
   org.apache.tools.ant.util.LeadPipeInputStream

LeadPipeInputStream
public class LeadPipeInputStream extends PipedInputStream (Code)
Special PipedInputStream that will not die when the writing Thread is no longer alive.
since:
   Ant 1.6.2



Constructor Summary
public  LeadPipeInputStream()
     Construct a new LeadPipeInputStream.
public  LeadPipeInputStream(int size)
     Construct a new LeadPipeInputStream with the specified buffer size.
public  LeadPipeInputStream(PipedOutputStream src)
     Construct a new LeadPipeInputStream to pull from the specified PipedOutputStream.
public  LeadPipeInputStream(PipedOutputStream src, int size)
     Construct a new LeadPipeInputStream to pull from the specified PipedOutputStream, using a circular buffer of the specified size.

Method Summary
public  voidlog(String message, int loglevel)
     Log a message with the specified logging level.
public synchronized  intread()
     Read a byte from the stream.
public synchronized  voidsetBufferSize(int size)
     Set the size of the buffer.
Parameters:
  size - the new buffer size.
public  voidsetManagingComponent(ProjectComponent pc)
     Set a managing ProjectComponent for this LeadPipeInputStream.
public  voidsetManagingTask(Task task)
     Set a managing Task for this LeadPipeInputStream.


Constructor Detail
LeadPipeInputStream
public LeadPipeInputStream()(Code)
Construct a new LeadPipeInputStream.



LeadPipeInputStream
public LeadPipeInputStream(int size)(Code)
Construct a new LeadPipeInputStream with the specified buffer size.
Parameters:
  size - the size of the circular buffer.



LeadPipeInputStream
public LeadPipeInputStream(PipedOutputStream src) throws IOException(Code)
Construct a new LeadPipeInputStream to pull from the specified PipedOutputStream.
Parameters:
  src - the PipedOutputStream source.
throws:
  IOException - if unable to construct the stream.



LeadPipeInputStream
public LeadPipeInputStream(PipedOutputStream src, int size) throws IOException(Code)
Construct a new LeadPipeInputStream to pull from the specified PipedOutputStream, using a circular buffer of the specified size.
Parameters:
  src - the PipedOutputStream source.
Parameters:
  size - the size of the circular buffer.
throws:
  IOException - if there is an error.




Method Detail
log
public void log(String message, int loglevel)(Code)
Log a message with the specified logging level.
Parameters:
  message - the String message.
Parameters:
  loglevel - the int logging level.



read
public synchronized int read() throws IOException(Code)
Read a byte from the stream. the byte (0 to 255) or -1 if there are no more.
throws:
  IOException - if there is an error.



setBufferSize
public synchronized void setBufferSize(int size)(Code)
Set the size of the buffer.
Parameters:
  size - the new buffer size. Ignored if <= current size.



setManagingComponent
public void setManagingComponent(ProjectComponent pc)(Code)
Set a managing ProjectComponent for this LeadPipeInputStream.
Parameters:
  pc - the managing ProjectComponent.



setManagingTask
public void setManagingTask(Task task)(Code)
Set a managing Task for this LeadPipeInputStream.
Parameters:
  task - the managing Task.



Fields inherited from java.io.PipedInputStream
final protected static int PIPE_SIZE(Code)(Java Doc)
protected byte buffer(Code)(Java Doc)
protected int in(Code)(Java Doc)
protected int out(Code)(Java Doc)

Methods inherited from java.io.PipedInputStream
public synchronized int available() throws IOException(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public void connect(PipedOutputStream src) throws IOException(Code)(Java Doc)
public synchronized int read() throws IOException(Code)(Java Doc)
public synchronized int read(byte b, int off, int len) throws IOException(Code)(Java Doc)
protected synchronized void receive(int b) throws IOException(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.