fixed little bug in Java I/O Stream
This commit is contained in:
parent
416e96c169
commit
09d9678e11
@ -63,7 +63,7 @@ namespace hgl
|
|||||||
|
|
||||||
bool readUTF (UTF16String &str)
|
bool readUTF (UTF16String &str)
|
||||||
{
|
{
|
||||||
return in?in->ReadUTF8ShortString(str);
|
return in?in->ReadUTF8ShortString(str):false;
|
||||||
}
|
}
|
||||||
};//class JavaInputStream
|
};//class JavaInputStream
|
||||||
}//namespace io
|
}//namespace io
|
||||||
|
@ -54,8 +54,8 @@ namespace hgl
|
|||||||
return out?out->WriteUTF16BEChars(wstr,count):false;
|
return out?out->WriteUTF16BEChars(wstr,count):false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool writeUTF (const UTF8String &str){return out?out->WriteUTF8ShortString(str);}
|
bool writeUTF (const UTF8String &str){return out?out->WriteUTF8ShortString(str):false;}
|
||||||
bool writeUTF (const UTF16String &str){return out?out->WriteUTF8ShortString(str);}
|
bool writeUTF (const UTF16String &str){return out?out->WriteUTF8ShortString(str):false;}
|
||||||
};//class JavaOutputStream
|
};//class JavaOutputStream
|
||||||
}//namespace io
|
}//namespace io
|
||||||
}//namespace hgl
|
}//namespace hgl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user