Style Intelligence v12.0

inetsoft.report.lens
Class StreamTextLens

java.lang.Object
  extended by inetsoft.report.lens.StreamTextLens
All Implemented Interfaces:
TextLens, Serializable, Cloneable

public class StreamTextLens
extends Object
implements TextLens

The StreamTextLens allows using inputstream, file, or URL as the data source for a text lens.

See Also:
Serialized Form

Constructor Summary
StreamTextLens(File file)
          Create a text lens using the contents of the file as the data source.
StreamTextLens(InputStream stream)
          Create a text lens from an input stream.
StreamTextLens(Reader reader)
          Create a text lens from a reader.
StreamTextLens(URL url)
          Create a text lens from an URL.
 
Method Summary
 Object clone()
          Make a copy of this text lens.
 String getText()
          Get the text contents.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamTextLens

public StreamTextLens(InputStream stream)
               throws IOException
Create a text lens from an input stream.

Parameters:
stream - input stream.
Throws:
IOException

StreamTextLens

public StreamTextLens(File file)
               throws IOException
Create a text lens using the contents of the file as the data source.

Parameters:
file - file.
Throws:
IOException

StreamTextLens

public StreamTextLens(URL url)
               throws IOException
Create a text lens from an URL.

Parameters:
url - url to get data from.
Throws:
IOException

StreamTextLens

public StreamTextLens(Reader reader)
               throws IOException
Create a text lens from a reader.

Parameters:
reader - text reader.
Throws:
IOException
Method Detail

getText

public String getText()
Get the text contents.

Specified by:
getText in interface TextLens
Returns:
string value.

clone

public Object clone()
Description copied from interface: TextLens
Make a copy of this text lens.

Specified by:
clone in interface TextLens
Overrides:
clone in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.