updated API description
This commit is contained in:
@ -25,7 +25,7 @@ import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class DateUtil {
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ import java.util.Locale;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public abstract class OSUtil {
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ package de.muehlencord.shared.util;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class SecurityException extends Exception {
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ package de.muehlencord.shared.util;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class StringEncodingException extends Exception {
|
||||
|
||||
|
||||
@ -19,13 +19,12 @@ import java.io.UnsupportedEncodingException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.text.ParseException;
|
||||
import java.util.HashMap;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public abstract class StringUtil {
|
||||
|
||||
@ -72,15 +71,11 @@ public abstract class StringUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* fills s with blanks if s < length
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* fills s with blanks if s < length
|
||||
*
|
||||
* @param length the needed length for this field
|
||||
* @param s the field to extend with blanks
|
||||
* @return s extended by trainling blanks. s.length == length
|
||||
* @return s extended by trailing blanks. s.length == length
|
||||
*/
|
||||
public static String getBlankedString(int length, String s) {
|
||||
if (s == null) {
|
||||
@ -100,7 +95,7 @@ public abstract class StringUtil {
|
||||
*
|
||||
* @param content the string to get the value from
|
||||
* @param keyWord1 the starting keyword
|
||||
* @param keyWord2 the end keywod
|
||||
* @param keyWord2 the end keyword
|
||||
* @return the string between keyword1 and keyword2
|
||||
* @throws ParseException if the value cannot be determined - e.g. if one of the keywords is not found
|
||||
*/
|
||||
|
||||
@ -23,7 +23,7 @@ import java.util.Map;
|
||||
/**
|
||||
* Defines possbile file Byte Order Marks used in files.
|
||||
*
|
||||
* @see http://en.wikipedia.org/wiki/Byte-order_mark
|
||||
* @see <a href="https://en.wikipedia.org/wiki/Byte-order_mark">https://en.wikipedia.org/wiki/Byte-order_mark</a>
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class BOM {
|
||||
|
||||
@ -29,7 +29,7 @@ public class BOMStripperInputStream extends PushbackInputStream {
|
||||
/**
|
||||
* List of all possible BOMS
|
||||
*
|
||||
* @see http://en.wikipedia.org/wiki/Byte-order_mark for details
|
||||
* @see <a href="https://en.wikipedia.org/wiki/Byte-order_mark">https://en.wikipedia.org/wiki/Byte-order_mark</a>
|
||||
*/
|
||||
protected static final int[][] BOMS = {
|
||||
BOM.BOM_UTF32_BE,
|
||||
|
||||
@ -19,7 +19,7 @@ import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class FileHandlingException extends Exception implements Serializable {
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public abstract class FileUtil {
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ import java.io.InputStream;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public abstract class DefaultTest {
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||
/**
|
||||
* Basic StringUtilTests
|
||||
*
|
||||
* @author joern@muehlencord.de
|
||||
* @author Joern Muehlencord (joern@muehlencord.de)
|
||||
*/
|
||||
public class StringUtilTest extends DefaultTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user