projects
/
meviz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cf6e4ac
)
Code formatting
author
Svjatoslav Agejenko
<svjatoslav@svjatoslav.eu>
Fri, 14 Sep 2018 20:39:54 +0000
(23:39 +0300)
committer
Svjatoslav Agejenko
<svjatoslav@svjatoslav.eu>
Fri, 14 Sep 2018 20:39:54 +0000
(23:39 +0300)
13 files changed:
src/main/java/eu/svjatoslav/meviz/Main.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/Module.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/bomremove/BomStrippingOptions.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/encoder/EncodingPlan.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/htmlindexer/Constants.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/htmlindexer/ImageFormatError.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/htmlindexer/UrlParamEncoder.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/MetadadaHelper.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/renamer/Main.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/renamer/RenamingOptions.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/replace/CommandlineOptions.java
patch
|
blob
|
history
src/main/java/eu/svjatoslav/meviz/replace/Main.java
patch
|
blob
|
history
diff --git
a/src/main/java/eu/svjatoslav/meviz/Main.java
b/src/main/java/eu/svjatoslav/meviz/Main.java
index
5ff33bc
..
165241f
100755
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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 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
(file)
--- 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 {
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 {
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
(file)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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
(executable)
--- 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
/*
* 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.
* 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.