Skip navigation links
A C D E F G I L O P R S T U W 

A

add(String) - Method in class edu.duke.StorageResource
Adds a string to this storage object.
asString() - Method in class edu.duke.FileResource
Return entire contents of this opened file as one string.
asString() - Method in class edu.duke.URLResource
Return entire open web page as one string.

C

clear() - Method in class edu.duke.StorageResource
Remove all strings from this object so that .size() == 0.
close() - Method in class org.apache.commons.csv.CSVParser
Closes resources.
contains(String) - Method in class edu.duke.StorageResource
Determines if a string is stored in this object.
CSVParser - Class in org.apache.commons.csv
Parses CSV files according to the specified format.
CSVParser(Reader, CSVFormat) - Constructor for class org.apache.commons.csv.CSVParser
Customized CSV parser using the given CSVFormat
CSVParser(Reader, CSVFormat, long, long) - Constructor for class org.apache.commons.csv.CSVParser
Customized CSV parser using the given CSVFormat
CSVRecord - Class in org.apache.commons.csv
A CSV record parsed from a CSV file.

D

data() - Method in class edu.duke.StorageResource
Create and return an iterable for all strings in this object.
DirectoryResource - Class in edu.duke
The DirectoryResource class allows the user to choose one or more files from a directory (or folder) with a file selection dialog box by using the method selectedFiles.
DirectoryResource() - Constructor for class edu.duke.DirectoryResource
Create a DirectoryResource object.
draw() - Method in class edu.duke.ImageResource
Displays this image in a separate window.

E

edu.duke - package edu.duke
Resource classes for Duke/Coursera course.

F

FileResource - Class in edu.duke
The FileResource class represents a file and allows access to its contents a line at a time, using the method lines, or a word at a time, using the method words.
FileResource() - Constructor for class edu.duke.FileResource
Create a FileResource object that opens the file chosen by the user using a file selection dialog box.
FileResource(File) - Constructor for class edu.duke.FileResource
Create a FileResource object that opens a file represented by the File object passed as a parameter.
FileResource(String) - Constructor for class edu.duke.FileResource
Create a FileResource object that opens a file whose name is passed as a parameter.
FileResource(boolean) - Constructor for class edu.duke.FileResource
Create a FileResource object that opens the file chosen by the user using a file selection dialog box, possibly to write to it.
FileResource(File, boolean) - Constructor for class edu.duke.FileResource
Create a FileResource object that opens a file represented by the File object passed as a parameter, possibly to write to it.
FileResource(String, boolean) - Constructor for class edu.duke.FileResource
Create a FileResource object that opens a file whose name is passed as a parameter, possibly to write to it.

G

get(Enum<?>) - Method in class org.apache.commons.csv.CSVRecord
Returns a value by Enum.
get(int) - Method in class org.apache.commons.csv.CSVRecord
Returns a value by index.
get(String) - Method in class org.apache.commons.csv.CSVRecord
Returns a value by name.
getAlpha() - Method in class edu.duke.Pixel
Returns the value of the pixel's alpha (or transparency) component.
getBlue() - Method in class edu.duke.Pixel
Returns the value of the pixel's blue component.
getCharacterPosition() - Method in class org.apache.commons.csv.CSVRecord
Returns the start position of this record as a character position in the source stream.
getComment() - Method in class org.apache.commons.csv.CSVRecord
Returns the comment for this record, if any.
getCSVHeaders(CSVParser) - Method in class edu.duke.FileResource
Allows access to the column names of the header row of a CSV file (the first line in the file) one at a time.
getCSVHeaders(CSVParser) - Method in class edu.duke.URLResource
Allows access to the column names of the header row of a CSV file (the first line in the file) one at a time.
getCSVParser() - Method in class edu.duke.FileResource
Returns a CSVParser object to access the contents of an open file.
getCSVParser(boolean) - Method in class edu.duke.FileResource
Returns a CSVParser object to access the contents of an open file, possibly without a header row.
getCSVParser(boolean, String) - Method in class edu.duke.FileResource
Returns a CSVParser object to access the contents of an open file, possibly without a header row and a different data delimiter than a comma.
getCSVParser() - Method in class edu.duke.URLResource
Returns a CSVParser object to access the contents of an open web page.
getCSVParser(boolean) - Method in class edu.duke.URLResource
Returns a CSVParser object to access the contents of an open web page, possibly without a header row.
getCSVParser(boolean, String) - Method in class edu.duke.URLResource
Returns a CSVParser object to access the contents of an open web page, possibly without a header row and a different data delimiter than a comma.
getCurrentLineNumber() - Method in class org.apache.commons.csv.CSVParser
Returns the current line number in the input stream.
getFileName() - Method in class edu.duke.ImageResource
Returns the file name associated with this image.
getGreen() - Method in class edu.duke.Pixel
Returns the value of the pixel's green component.
getHeaderMap() - Method in class org.apache.commons.csv.CSVParser
Returns a copy of the header map that iterates in column order.
getHeight() - Method in class edu.duke.ImageResource
Returns the height of the image in pixels.
getPixel(int, int) - Method in class edu.duke.ImageResource
Returns the pixel at the (x, y) coordinates passed as a parameter.
getRecordNumber() - Method in class org.apache.commons.csv.CSVParser
Returns the current record number in the input stream.
getRecordNumber() - Method in class org.apache.commons.csv.CSVRecord
Returns the number of this record in the parsed CSV file.
getRecords() - Method in class org.apache.commons.csv.CSVParser
Parses the CSV input according to the given format and returns the content as a list of CSVRecords.
getRed() - Method in class edu.duke.Pixel
Returns the value of the pixel's red component.
getWidth() - Method in class edu.duke.ImageResource
Returns the width of the image in pixels.
getX() - Method in class edu.duke.Pixel
Returns the pixel's x-coordinate within the image.
getY() - Method in class edu.duke.Pixel
Returns the pixel's y-coordinate within the image.

I

ImageResource - Class in edu.duke
The ImageResource class represents an image as a grid of Pixel objects and allows access to all of them, using the method pixels.
ImageResource() - Constructor for class edu.duke.ImageResource
Create an ImageResource object that represents the file chosen by the user using a file selection dialog box.
ImageResource(int, int) - Constructor for class edu.duke.ImageResource
Create an ImageResource object whose size is the width and height passed as parameters and whose pixels are all black.
ImageResource(String) - Constructor for class edu.duke.ImageResource
Create an ImageResource object from the file name passed as a parameter.
ImageResource(File) - Constructor for class edu.duke.ImageResource
Create an ImageResource object from a file given as a parameter.
ImageResource(ImageResource) - Constructor for class edu.duke.ImageResource
Create an ImageResource object that is a copy of another image.
isClosed() - Method in class org.apache.commons.csv.CSVParser
Gets whether this parser is closed.
isConsistent() - Method in class org.apache.commons.csv.CSVRecord
Tells whether the record size matches the header size.
isMapped(String) - Method in class org.apache.commons.csv.CSVRecord
Checks whether a given column is mapped, i.e.
isSet(String) - Method in class org.apache.commons.csv.CSVRecord
Checks whether a given columns is mapped and has a value.
iterator() - Method in class org.apache.commons.csv.CSVParser
Returns an iterator on the records.
iterator() - Method in class org.apache.commons.csv.CSVRecord
Returns an iterator over the values of this record.

L

lines() - Method in class edu.duke.FileResource
Allow access to this opened file one line at a time.
lines() - Method in class edu.duke.URLResource
Allow access to open web page one line at a time.

O

org.apache.commons.csv - package org.apache.commons.csv
Apache Commons CSV Format Support.

P

parse(File, Charset, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
Creates a parser for the given File.
parse(String, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
Creates a parser for the given String.
parse(URL, Charset, CSVFormat) - Static method in class org.apache.commons.csv.CSVParser
Creates a parser for the given URL.
Pixel - Class in edu.duke
The Pixel class represents a color as its component values of red, green, blue, as well as alpha (for transparency).
Pixel(Pixel) - Constructor for class edu.duke.Pixel
Creates a new Pixel from with the same values as the other pixel passed as a parameter.
pixels() - Method in class edu.duke.ImageResource
Allow access to this image one pixel at a time.

R

RangeResource - Class in edu.duke
The RangeResource class represents a range of integer (or whole) numbers and allows access to these numbers using the method sequence.
RangeResource(int) - Constructor for class edu.duke.RangeResource
Create a RangeResource object, starting at 0 and going up to but not including end, [0 - end), that increments by 1.
RangeResource(int, int) - Constructor for class edu.duke.RangeResource
Create a RangeResource object, starting at start and going up to but not including end, [start - end), that increments by 1.
RangeResource(int, int, int) - Constructor for class edu.duke.RangeResource
Create a RangeResource object, starting at start and going up to but not including end, [start - end), that increments by the amount passed as a parameter.
RangeResource(RangeResource) - Constructor for class edu.duke.RangeResource
Create an RangeResource object that is a copy of another range.
ResourceException - Exception in edu.duke
A general exception for Resource objects.
ResourceException(String) - Constructor for exception edu.duke.ResourceException
 
ResourceException(String, Throwable) - Constructor for exception edu.duke.ResourceException
 

S

save() - Method in class edu.duke.ImageResource
Saves the image as a JPEG using its current file name or opens a file selection dialog box to allow the user to choose a name if no file name set (for example if this image was created as a blank sized image).
saveAs() - Method in class edu.duke.ImageResource
Saves the image as a JPEG by opening a file selection dialog box to allow the user to choose the new name for the file.
selectedFiles() - Method in class edu.duke.DirectoryResource
Open a file selection dialog box to allow the user to navigate to a directory and select one or more files from the chosen directory (or folder).
sequence() - Method in class edu.duke.RangeResource
Allow access to the numbers in this range one at a time.
setAlpha(int) - Method in class edu.duke.Pixel
Resets the value of the pixel's alpha (or transparency) component to the value passed as a parameter.
setBlue(int) - Method in class edu.duke.Pixel
Resets the value of the pixel's blue component to the value passed as a parameter.
setFileName(String) - Method in class edu.duke.ImageResource
Resets the file name associated with this image.
setGreen(int) - Method in class edu.duke.Pixel
Resets the value of the pixel's green component to the value passed as a parameter.
setPixel(int, int, Pixel) - Method in class edu.duke.ImageResource
Resets the pixel at the given (x, y) coordinates but does not redraw it.
setRed(int) - Method in class edu.duke.Pixel
Resets the value of the pixel's red component to the value passed as a parameter.
size() - Method in class edu.duke.StorageResource
Returns the number of strings added/stored in this object.
size() - Method in class org.apache.commons.csv.CSVRecord
Returns the number of values in this record.
StorageResource - Class in edu.duke
The StorageResource class stores any number of String objects and allows access to these stored values one at a time, using the method data.
StorageResource() - Constructor for class edu.duke.StorageResource
Create an empty StorageResource object
StorageResource(StorageResource) - Constructor for class edu.duke.StorageResource
Create an StorageResource object that is a copy of another list.

T

toMap() - Method in class org.apache.commons.csv.CSVRecord
Copies this record into a new Map.
toString() - Method in class edu.duke.ImageResource
Returns a string representation of the image (file name, width, and height).
toString() - Method in class edu.duke.Pixel
Returns the string representation of the of the pixel.
toString() - Method in class edu.duke.RangeResource
Return string representation of this range, with each value in the sequence separated by a comma.
toString() - Method in class org.apache.commons.csv.CSVRecord
Returns a string representation of the contents of this record.

U

URLResource - Class in edu.duke
The URLResource class opens a connection to a URL and allows access to the contents of the web page a line at a time, using the method lines, or a word at a time, using the method words.
URLResource(String) - Constructor for class edu.duke.URLResource
Create a URLResource object bound to the web page whose URL is given as the parameter.

W

words() - Method in class edu.duke.FileResource
Allow access to this opened file one word at a time, where words are separated by white-space.
words() - Method in class edu.duke.URLResource
Allow access to this open web page one word at a time, where words are separated by white-space.
write(String) - Method in class edu.duke.FileResource
Writes a string to the end of this file.
write(StorageResource) - Method in class edu.duke.FileResource
Writes a list of strings to the end of this file, one element per line.
A C D E F G I L O P R S T U W 
Skip navigation links