From 3a1c5919a7780346ae8deb302046234ed9e07997 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 14 Sep 2018 23:39:54 +0300 Subject: [PATCH] Code formatting --- src/main/java/eu/svjatoslav/meviz/Main.java | 2 +- src/main/java/eu/svjatoslav/meviz/Module.java | 2 +- .../meviz/bomremove/BomStrippingOptions.java | 2 +- .../meviz/encoder/EncodingPlan.java | 2 +- .../meviz/htmlindexer/Constants.java | 2 +- .../meviz/htmlindexer/ImageFormatError.java | 2 +- .../meviz/htmlindexer/UrlParamEncoder.java | 62 +++++++++---------- .../meviz/htmlindexer/WebIndexer.java | 2 +- .../htmlindexer/metadata/MetadadaHelper.java | 2 +- .../eu/svjatoslav/meviz/renamer/Main.java | 2 +- .../meviz/renamer/RenamingOptions.java | 2 +- .../meviz/replace/CommandlineOptions.java | 2 +- .../eu/svjatoslav/meviz/replace/Main.java | 2 +- 13 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/Main.java b/src/main/java/eu/svjatoslav/meviz/Main.java index 5ff33bc..165241f 100755 --- a/src/main/java/eu/svjatoslav/meviz/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/Main.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/Module.java b/src/main/java/eu/svjatoslav/meviz/Module.java index d611eed..844c9c9 100755 --- a/src/main/java/eu/svjatoslav/meviz/Module.java +++ b/src/main/java/eu/svjatoslav/meviz/Module.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/bomremove/BomStrippingOptions.java b/src/main/java/eu/svjatoslav/meviz/bomremove/BomStrippingOptions.java index e3dccd3..5f9925e 100755 --- a/src/main/java/eu/svjatoslav/meviz/bomremove/BomStrippingOptions.java +++ b/src/main/java/eu/svjatoslav/meviz/bomremove/BomStrippingOptions.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingPlan.java b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingPlan.java index 0d763de..fca63de 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingPlan.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingPlan.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Constants.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Constants.java index e47f702..4459416 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Constants.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Constants.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/ImageFormatError.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/ImageFormatError.java index 9791855..5f969ca 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/ImageFormatError.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/ImageFormatError.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/UrlParamEncoder.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/UrlParamEncoder.java index 15d9302..51af9c7 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/UrlParamEncoder.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/UrlParamEncoder.java @@ -1,7 +1,7 @@ /* * Svjatoslav Commons - shared library of common functionality. * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License * or later as published by the Free Software Foundation. @@ -11,45 +11,45 @@ package eu.svjatoslav.meviz.htmlindexer; public class UrlParamEncoder { - public static String decode(final String source) { + public static String decode(final String source) { - final String result = source.replaceAll("%20", " "); + final String result = source.replaceAll("%20", " "); - return result; - } + return result; + } - public static String encode(final String source) { + public static String encode(final String source) { - final StringBuffer buffer = new StringBuffer(); - for (int i = 0; i < source.length(); i++) { - boolean replaced = false; - final char character = source.charAt(i); + final StringBuffer buffer = new StringBuffer(); + for (int i = 0; i < source.length(); i++) { + boolean replaced = false; + final char character = source.charAt(i); - if (character == ' ') { - buffer.append("%20"); - replaced = true; - } + if (character == ' ') { + buffer.append("%20"); + replaced = true; + } - if (character == '?') { - buffer.append("%3F"); - replaced = true; - } + if (character == '?') { + buffer.append("%3F"); + replaced = true; + } - if (character == ',') { - buffer.append("%2C"); - replaced = true; - } + if (character == ',') { + buffer.append("%2C"); + replaced = true; + } - if (character == ':') { - buffer.append("%3A"); - replaced = true; - } + if (character == ':') { + buffer.append("%3A"); + replaced = true; + } - if (!replaced) - buffer.append(character); - } + if (!replaced) + buffer.append(character); + } - return buffer.toString(); - } + return buffer.toString(); + } } diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java index dba6f5a..d2aabcd 100644 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java @@ -61,7 +61,7 @@ public class WebIndexer extends AbstractIndexer { private DirectoryMetadata getMetadataForPath(final String requestPath) throws ClassNotFoundException, IOException { - final String urlString = globalPrefix + Utils.urlEncode(requestPath) +"/.thumbnails/metadata_6.dat"; + final String urlString = globalPrefix + Utils.urlEncode(requestPath) + "/.thumbnails/metadata_6.dat"; for (int i = 0; true; i++) try { diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/MetadadaHelper.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/MetadadaHelper.java index 234bca2..713fb9e 100644 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/MetadadaHelper.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/MetadadaHelper.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/renamer/Main.java b/src/main/java/eu/svjatoslav/meviz/renamer/Main.java index f4fc359..6277932 100755 --- a/src/main/java/eu/svjatoslav/meviz/renamer/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/renamer/Main.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/renamer/RenamingOptions.java b/src/main/java/eu/svjatoslav/meviz/renamer/RenamingOptions.java index d9869fe..789964b 100755 --- a/src/main/java/eu/svjatoslav/meviz/renamer/RenamingOptions.java +++ b/src/main/java/eu/svjatoslav/meviz/renamer/RenamingOptions.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/replace/CommandlineOptions.java b/src/main/java/eu/svjatoslav/meviz/replace/CommandlineOptions.java index b8d7944..346f6cc 100755 --- a/src/main/java/eu/svjatoslav/meviz/replace/CommandlineOptions.java +++ b/src/main/java/eu/svjatoslav/meviz/replace/CommandlineOptions.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. diff --git a/src/main/java/eu/svjatoslav/meviz/replace/Main.java b/src/main/java/eu/svjatoslav/meviz/replace/Main.java index 48d98a5..c77ce60 100755 --- a/src/main/java/eu/svjatoslav/meviz/replace/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/replace/Main.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. -- 2.20.1