<The result>
you came to
you were most
you my best
you are playing
you obtained it?”
“I
you would advise
you at my
you will not
you again before
you have worried
you if it
wouldn’t
you three. It
you may eat
you may see
you agree to
you have read,
you paid a
you paid the
you can do
you are
located in
you from
copying, distributing,
you share it
you can do
you are outside
you have removed
you are redistributing
you comply with
you derive from
you in writing
you within 90
you must obtain
you discover a
defect
you paid for
you with
the defective
you may choose
you do
or cause
you cause.
Section
<Original Text>
JOHN CORWELL, SAILOR AND MINER; and POISONOUS FISH
By Louis Becke
T. Fisher Unwin, 1901
JOHN CORWELL, SAILOR AND MINER
I
“Am I to have no privacy at all?” demanded the Governor irritably as
the orderly again tapped at the open door and announced another visitor.
“Who is he and what does he want?”
“Mr. John Corwell, your Excellency, master of the cutter _Ceres_, from
the South Seas.”
The Governor’s brows relaxed somewhat. “Let him come in in ten minutes,
Cleary, but tell him at the same time that I am very tired–too tired to
listen unless he has something of importance to say.”
The day had indeed been a most tiring one to the worthy Governor of the
colony of New South Wales, just then struggling weakly in its infancy,
and only emerging from the horrors of actual starvation, caused by the
utter neglect of the Home authorities to send out further supplies of
provisions. Prisoners of both sexes came in plenty, but brought nothing
to eat with them; the military officers who should have helped him in
his arduous labours were secretly plotting against him, and their
spare time–and they had plenty–was devoted to writing letters home
to highly-placed personages imploring them to induce the Government
to break up the settlement and not “waste the health and lives of even
these abandoned convicts in trying to found a colony in the most awful
and hideous desert the eye of man had ever seen, a place which can never
be useful to man and is accursed by God.” But the Governor took no heed.
Mutiny and discontent he had fought in his silent, determined way as
he fought grim famine, sparing himself nothing, toiling from dawn till
dark, listening to complaints, remedying abuses, punishing with swift
severity those who deserved it, and yet always preserving the same cold,
unbending dignity of manner which covered a highly-sensitive and deeply
sympathetic nature. ……………………..
<code>
// Reverse Words
//Daniel Shiffman
//Programming from A to Z, Spring 2006
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
public class Testebook{
public static void main (String[] args) throws IOException {
// Create an input stream and file channel
// Using first arguemnt as file name to read in
FileInputStream fis = new FileInputStream(args[0]);
FileChannel fc = fis.getChannel();
// Read the contents of a file into a ByteBuffer
ByteBuffer bb = ByteBuffer.allocate((int)fc.size());
fc.read(bb);
fc.close();
// Convert ByteBuffer to one long String
String content = new String(bb.array());
//Split text by wherever there is a space
String[] words = content.split(” “);
System.out.println(”Read ” + words.length + ” words from ” + args[0]);
StringBuffer ebook = new StringBuffer();
for (int i = 0; i < words.length; i+=2) {
if (words[i].equals(”you”)) {
ebook.append(words[i] + ” ” + words[i+1] +” ” + words[i+2]+ “\n”);
}
}
String output = ebook.toString();
// Create an output stream and file channel to write out a report
// (Also print out report to screen)
FileOutputStream fos = new FileOutputStream(args[1]);
FileChannel outfc = fos.getChannel();
// Convert content String into ByteBuffer and write out to file
bb = ByteBuffer.wrap(output.getBytes());
outfc.write(bb);
outfc.close();
System.out.println(”Reversed text written to ” + args[1]);
}
}