com.browsermob.api
Interface File


public interface File

An object that contains a handle to an uploaded file and supporting operations


Method Summary
 void close()
          close the corresponding file and related resources
 boolean isOpen()
          determine if the underlying file is currently open
 java.lang.String readContents()
          read the entire contents of a file If a reader has not been instantiated then one will be and closed upon completion
 java.lang.String readLine()
          read a line using the current reader If a reader has not been instantiated then one will be
 

Method Detail

readLine

java.lang.String readLine()
                          throws java.io.IOException
read a line using the current reader If a reader has not been instantiated then one will be

Returns:
String containing the content that was read
Throws:
java.io.IOException

readContents

java.lang.String readContents()
                              throws java.io.IOException
read the entire contents of a file If a reader has not been instantiated then one will be and closed upon completion

Returns:
String containing the content that was read
Throws:
java.io.IOException

isOpen

boolean isOpen()
determine if the underlying file is currently open

Returns:
boolean true if file is open, false if not

close

void close()
           throws java.io.IOException
close the corresponding file and related resources

Throws:
java.io.IOException


Copyright © 2011 Neustar, Inc. All Rights Reserved.