org.apache.myfaces.trinidadinternal.share.io
Class URLInputStreamProvider

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.io.URLInputStreamProvider
All Implemented Interfaces:
org.apache.myfaces.trinidad.share.io.InputStreamProvider

public class URLInputStreamProvider
extends java.lang.Object
implements org.apache.myfaces.trinidad.share.io.InputStreamProvider

An InputStreamProvider for opening URLs.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/share/io/URLInputStreamProvider.java#0 $) $Date: 10-nov-2005.19:00:10 $

Constructor Summary
URLInputStreamProvider(java.net.URL url)
          Create an URLInputStreamProvider.
 
Method Summary
 java.lang.Object getCachedResult()
           
 java.lang.String getDisplayName()
           
 java.lang.Object getIdentifier()
           
 boolean hasSourceChanged()
          Returns true if the underlying target has changed since the last call to openInputStream()
 java.io.InputStream openInputStream()
           
 void setCachedResult(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLInputStreamProvider

public URLInputStreamProvider(java.net.URL url)
Create an URLInputStreamProvider.

Method Detail

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Specified by:
openInputStream in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider
Throws:
java.io.IOException

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider

getIdentifier

public java.lang.Object getIdentifier()
Specified by:
getIdentifier in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider

hasSourceChanged

public boolean hasSourceChanged()
Returns true if the underlying target has changed since the last call to openInputStream()

Specified by:
hasSourceChanged in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider

getCachedResult

public java.lang.Object getCachedResult()
Specified by:
getCachedResult in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider

setCachedResult

public void setCachedResult(java.lang.Object value)
Specified by:
setCachedResult in interface org.apache.myfaces.trinidad.share.io.InputStreamProvider


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.