]> gerrit.simantics Code Review - simantics/platform.git/commit
Added URIUtil.encodeFilename2 which encodes only necessary characters. 25/625/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 14 Jun 2017 16:22:30 +0000 (19:22 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 14 Jun 2017 16:27:37 +0000 (19:27 +0300)
commit75809ec96a58c23cc89131637fbc65435ac482af
tree697e5d459242d919011e8edc277d8f0727aca13d
parentc8d17ec86ad48f769923d1e674e2755471e20189
Added URIUtil.encodeFilename2 which encodes only necessary characters.

The new method uses the same '%' URI style encoding as
URIUtil.encodeFilename but encodes only characters that cannot be
present in Windows file names, i.e. the following: <>:"/\|?*

This method can be used to convert arbitrary user-given names to valid
file names in wizards etc.

refs #7301

Change-Id: Ia7e264e5304ff0533376c73f5ae9312e197ccf15
bundles/org.simantics.databoard/src/org/simantics/databoard/util/URIUtil.java