org.netbeans.modules.extexecution/2 1.25.1

org.netbeans.api.extexecution.input
Class InputReaders.FileInput

java.lang.Object
  extended by org.netbeans.api.extexecution.input.InputReaders.FileInput
Enclosing class:
InputReaders

public static final class InputReaders.FileInput
extends Object

Represents the file with associated charset for reading from it. This class is immutable.


Nested Class Summary
static interface InputReaders.FileInput.Provider
          Provides the file input.
 
Constructor Summary
InputReaders.FileInput(File file, Charset charset)
          Creates the new input representing the given file.
 
Method Summary
 Charset getCharset()
          Returns the charset for reading the file.
 File getFile()
          Returns the file represented by this input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputReaders.FileInput

public InputReaders.FileInput(@NonNull
                              File file,
                              @NonNull
                              Charset charset)
Creates the new input representing the given file.

Parameters:
file - file to represent
charset - associated charset
Method Detail

getCharset

@NonNull
public Charset getCharset()
Returns the charset for reading the file.

Returns:
the charset for reading the file

getFile

@NonNull
public File getFile()
Returns the file represented by this input.

Returns:
the file represented by this input

org.netbeans.modules.extexecution/2 1.25.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.