W2L help content, hiding postponed features, some bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@64 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
83f0c7d224
commit
86e0b8d693
40 changed files with 885 additions and 142 deletions
|
@ -16,17 +16,18 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2008 by Henrik Just
|
||||
* Copyright: 2002-2010 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.0 (2008-11-22)
|
||||
* Version 1.2 (2010-05-17)
|
||||
*
|
||||
*/
|
||||
|
||||
package writer2latex.util;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
@ -331,6 +332,22 @@ public class Misc{
|
|||
}
|
||||
return "error";
|
||||
}
|
||||
|
||||
/* utility method to convert a *relative* URL to a file name
|
||||
(ie. replace %20 with spaces etc.)
|
||||
*/
|
||||
public static String makeFileName(String sURL) {
|
||||
try {
|
||||
File file = new File(new java.net.URI("file:///"+sURL));
|
||||
return file.getName();
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "error";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** <p>Read an <code>InputStream</code> into a <code>byte</code>array</p>
|
||||
* @param is the <code>InputStream</code> to read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue