ICU-3301 DataInputStream does not support read/mark APIs so wrap the InputStream in BufferedInputStream first

X-SVN-Rev: 15194
This commit is contained in:
Ram Viswanadha 2004-05-07 18:51:24 +00:00
parent 14e67686dd
commit 5ecbec8f1e

View file

@ -7,6 +7,7 @@
package com.ibm.icu.text;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.DataInputStream;
import java.io.IOException;
@ -144,7 +145,7 @@ public class RBBIDataWrapper {
static RBBIDataWrapper get(InputStream is) throws IOException {
int i;
DataInputStream dis = new DataInputStream(is);
DataInputStream dis = new DataInputStream(new BufferedInputStream(is));
RBBIDataWrapper This = new RBBIDataWrapper();
// Seek past the ICU data header.