Some minor bugfixing, refactoring and rearrangement
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@165 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
8a6e654344
commit
6249ef406e
31 changed files with 146 additions and 288 deletions
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2012-02-26)
|
||||
* Version 1.4 (2014-08-27)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -63,9 +63,8 @@ public class Misc{
|
|||
// Truncate a date+time to the date only
|
||||
public static final String dateOnly(String sDate) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
||||
Date date = null;
|
||||
try {
|
||||
date = sdf.parse(sDate);
|
||||
sdf.parse(sDate);
|
||||
} catch (ParseException e) {
|
||||
// If the date cannot be parsed according to the given pattern, return the original string
|
||||
return sDate;
|
||||
|
|
|
@ -67,7 +67,7 @@ public class SimpleZipReader {
|
|||
* You can only get an entry once: The <code>SimpleZipReader</code> removes the entry from the
|
||||
* collection when this method is called (memory optimization).
|
||||
*
|
||||
* @param name the name (path) of the ZIP entry
|
||||
* @param sName the name (path) of the ZIP entry
|
||||
*
|
||||
* @return a byte array with the contents of the entry, or null if the entry does not exist
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue