Skip to content

Commit

Permalink
Removed test code
Browse files Browse the repository at this point in the history
Removed accidentally committed test code.

Signed-off-by: Robert Smith <smithrw@ornl.gov>
  • Loading branch information
SmithRWORNL committed Feb 20, 2019
1 parent 5111f43 commit e0f387c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
@@ -0,0 +1,7 @@
/* This file is automatically managed and will be overwritten from time to time. */
/* Do not manually edit this file. */

/* Import and include this mixin into your project theme to include the addon themes */
@mixin addons {
}

Expand Up @@ -97,7 +97,7 @@ protected void init(VaadinRequest vaadinRequest) {
// Get the POSTed JSON data from the session.
String json = (String) getSession().getAttribute(DATA_ATTRIBUTE_NAME);
HashMap<String, String> optionMap = (HashMap<String, String>) getSession().getAttribute(OPTIONS_ATTRIBUTE_NAME);

// Convert the JSON into a grid
CSVGrid grid = new Gson().fromJson(json, CSVGrid.class);

Expand Down
Expand Up @@ -71,8 +71,8 @@ public String plot(@QueryParam("filename") String name, InputStream inputStream)
e.printStackTrace();
}
}
return "";
//return grid.getFullJSON();

return grid.getFullJSON();
}

/**
Expand Down Expand Up @@ -158,6 +158,7 @@ else if (firstValueName && firstRow.length != 1) {
// Count the number of names in the fist column
nameCount = 0;
for (String row : input) {

if (isNotNumeric(row.split(delimiter)[0])) {
nameCount++;
}
Expand Down
Expand Up @@ -33,7 +33,7 @@ public class InputStreamUtils {
public static String readStringStream(InputStream stream) {

//Buffer to hold chunks of the stream
char[] buffer = new char[1024];
char[] buffer = new char[16384];

//String builder that will hold the contents
StringBuilder builder = new StringBuilder();
Expand All @@ -44,12 +44,12 @@ public static String readStringStream(InputStream stream) {
InputStreamReader reader = new InputStreamReader(stream, "UTF-8");

//Loop until the stream is exhausted, adding all content to the builder
int size = reader.read(buffer, 0, 1024);
int size = reader.read(buffer, 0, 16384);

while(size >= 0) {
builder.append(buffer, 0, size);
builder.append("\n");
size = reader.read(buffer, 0, 1024);
size = reader.read(buffer, 0, 16384);
}

} catch (IOException e) {
Expand Down
Expand Up @@ -309,8 +309,6 @@ public String plot(@QueryParam("filename") String name, @QueryParam("filepath")
+ "<script language=\"javascript\">\n" + " document.getElementById(\"eavp-hidden-form-" + id
+ "\").submit();\n" + " </script>";



return html;

} else if ("qclimax".equals(type)) {
Expand Down

0 comments on commit e0f387c

Please sign in to comment.