mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
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:
parent
14e67686dd
commit
5ecbec8f1e
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue