Merged branch JAVADEV_PR3_20001002 into trunk.
git-svn-id: svn://10.0.0.236/trunk@82247 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -31,8 +31,11 @@ public class PlugletInputStream extends InputStream {
|
||||
nativeInitialize();
|
||||
}
|
||||
public int read() throws IOException {
|
||||
read(buf,0,1);
|
||||
return buf[0];
|
||||
if (read(buf,0,1) < 0) {
|
||||
return -1;
|
||||
} else {
|
||||
return buf[0] & 0xff;
|
||||
}
|
||||
}
|
||||
public int read(byte b[], int off, int len) throws IOException {
|
||||
if (b == null) {
|
||||
|
||||
@@ -43,7 +43,9 @@ public class PlugletStreamInfoImpl implements PlugletStreamInfo {
|
||||
* @param offset the start point for reading.
|
||||
* @param length the number of bytes to be read.
|
||||
*/
|
||||
public native void requestRead(ByteRanges ranges);
|
||||
public void requestRead(ByteRanges ranges) {
|
||||
throw(new UnsupportedOperationException("PlugletStreamInfo.requestRead not implemented yet"));
|
||||
}
|
||||
protected void finalize() {
|
||||
nativeFinalize();
|
||||
}
|
||||
|
||||
@@ -61,12 +61,16 @@ public class PlugletTagInfo2Impl implements PlugletTagInfo2 {
|
||||
/* Get the complete text of the HTML tag that was
|
||||
* used to instantiate this pluglet
|
||||
*/
|
||||
public native String getTagText();
|
||||
public String getTagText() {
|
||||
throw(new UnsupportedOperationException("PlugletTagInfo2.getTagText not implemented yet"));
|
||||
}
|
||||
public native String getDocumentBase();
|
||||
/* Return an encoding whose name is specified in:
|
||||
* http://java.sun.com/products/jdk/1.1/docs/guide/intl/intl.doc.html#25303
|
||||
*/
|
||||
public native String getDocumentEncoding();
|
||||
public String getDocumentEncoding() {
|
||||
throw(new UnsupportedOperationException("PlugletTagInfo2.getDocumentEncoding not implemented yet"));
|
||||
}
|
||||
public native String getAlignment();
|
||||
public native int getWidth();
|
||||
public native int getHeight();
|
||||
|
||||
Reference in New Issue
Block a user