A mozilla/npAPInsIInputStreamShim.cpp

A mozilla/npAPInsIInputStreamShim.h

- Shim to allow the np4xplugin API to call pass stream data to pluglet

M mozilla/Makefile.in

- Add the shim to the source files

M mozilla/nppluglet.cpp

- implement the layer that calls the shim

M test/test.html

- Pass the plugin a src of its .java file.

M test/test.java

- additional debug printout inf

mozilla/npAPInsIInputStreamShim.cpp mozilla/npAPInsIInputStreamShim.h mozilla/Makefile.in mozilla/nppluglet.cpp test/test.html test/test.java


git-svn-id: svn://10.0.0.236/trunk@214151 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2006-10-26 04:19:00 +00:00
parent 67a8ba89cc
commit cd61788d87
6 changed files with 610 additions and 14 deletions

View File

@@ -185,6 +185,9 @@ class TestStreamListener implements PlugletStreamListener {
org.mozilla.util.DebugPluglet.print("--TestStreamListener.onStartBinding ");
org.mozilla.util.DebugPluglet.print("length "+streamInfo.getLength());
org.mozilla.util.DebugPluglet.print(" contenet type "+ streamInfo.getContentType());
org.mozilla.util.DebugPluglet.print(" url "+ streamInfo.getURL());
org.mozilla.util.DebugPluglet.print(" seekable "+ streamInfo.isSeekable());
}
/**
* Notify the client that data is available in the input stream. This
@@ -199,12 +202,18 @@ class TestStreamListener implements PlugletStreamListener {
try{
org.mozilla.util.DebugPluglet.print("--TestStreamListener.onDataAvailable ");
org.mozilla.util.DebugPluglet.print("--length "+input.available()+"\n");
String cur = null;
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(input));
while (null != (cur = bufferedReader.readLine())) {
org.mozilla.util.DebugPluglet.print(cur);
}
} catch(Exception e) {
;
}
}
public void onFileAvailable(PlugletStreamInfo plugletInfo, String fileName) {
org.mozilla.util.DebugPluglet.print("--TestStreamListener.onFileAvailable\n");
org.mozilla.util.DebugPluglet.print(" fileName" + fileName);
}
/**
* Notify the observer that the URL has finished loading.