fixed little bug in Java I/O Stream

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-09-28 15:35:05 +08:00
parent 416e96c169
commit 09d9678e11
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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