Rename ByteOrderFactory to ByteOrderUtils to have a common naming schema
MODIFY
src/changes/changes.xml
src/changes/changes.xml
@@ -111,7 +111,7 @@ The <action> type attribute can be add,update,fix,remove.
Add infinite circular input stream
</action>
<action issue="IO-507" dev="ggregory" type="add">
- Add a ByteOrderFactory class.
+ Add a ByteOrderUtils class.
</action>
<action issue="IO-518" dev="jochen" type="add">
Add ObservableInputStream

RENAME
src/main/java/org/apache/commons/io/ByteOrderFactory.java
src/main/java/org/apache/commons/io/ByteOrderUtils.java
*
* @since 2.6
*/
-public final class ByteOrderFactory {
+public final class ByteOrderUtils {
private static final Locale ComparisonLocale = Locale.ROOT;
*/
public static final String LITTLE_ENDIAN = "Little";
- private ByteOrderFactory() {
+ private ByteOrderUtils() {
}
/**
@@ -52,8 +52,8 @@ private ByteOrderFactory() {
* </p>
* Examples:
* <ul>
- * <li>{@code ByteOrderFactory.parseByteOrder("little")} returns {@code ByteOrder.LITTLE_ENDIAN}</li>
- * <li>{@code ByteOrderFactory.parseByteOrder("big")} returns {@code ByteOrder.BIG_ENDIAN}</li>
+ * <li>{@code ByteOrderUtils.parseByteOrder("little")} returns {@code ByteOrder.LITTLE_ENDIAN}</li>
+ * <li>{@code ByteOrderUtils.parseByteOrder("big")} returns {@code ByteOrder.BIG_ENDIAN}</li>
* </ul>
*
* @param value

RENAME
src/test/java/org/apache/commons/io/ByteOrderFactoryTest.java
src/test/java/org/apache/commons/io/ByteOrderUtilsTest.java
import org.junit.Assert;
import org.junit.Test;
-public class ByteOrderFactoryTest {
+public class ByteOrderUtilsTest {
private ByteOrder parseByteOrder(final String value) {
- return ByteOrderFactory.parseByteOrder(value);
+ return ByteOrderUtils.parseByteOrder(value);
}
@Test

IO-507: Rename ByteOrderFactory to ByteOrderUtils to have a common naming schema