X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FLDOM%2FLDOMParser.cxx;h=341d9020673dea2af70c3a24d07853da6f0556ae;hb=8f34d47e211037d7fa6df8c4f060a161d9d84037;hpb=b3df3dcd823f78f9b96ce33a24d85769d7c3d59c diff --git a/src/LDOM/LDOMParser.cxx b/src/LDOM/LDOMParser.cxx index 82730ed..341d902 100644 --- a/src/LDOM/LDOMParser.cxx +++ b/src/LDOM/LDOMParser.cxx @@ -107,6 +107,18 @@ const TCollection_AsciiString& LDOMParser::GetError } //======================================================================= +//function : GetBOM +//purpose : Returns the byte order mask defined at the start of a stream +//======================================================================= + +LDOM_OSStream::BOMType LDOMParser::GetBOM() const +{ + if (myReader) + return myReader->GetBOM(); + return LDOM_OSStream::BOM_UNDEFINED; +} + +//======================================================================= //function : parse //purpose : //=======================================================================