Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.litesoft.sandbox.csapp.server;

import java.io.*;

public interface SmallFileValidator {
    class AcceptedResult {
        private String fileName;
        private String displayText;
        private String encodedContents; // displayable 7-bit Ascii (values: 10, 13, & 32 - 126)

        public AcceptedResult( String fileName, String displayText, String encodedContents ) {
            this.fileName = fileName;
            this.displayText = displayText;
            this.encodedContents = encodedContents;
        }

        public String getFileName() {
            return fileName;
        }

        /**
         * Get the Displayable Text from the file.
         *
         * @return !null, NewLines and Displayable 7-bit Ascii (decimal 32 thru 126)
         */
        public String getDisplayText() {
            return displayText;
        }

        /**
         * Get the Encoded Contents of the File.
         *
         * @return !null, Displayable (no spaces) 7-bit Ascii (decimal 33 thru 126)
         */
        public String getEncodedContents() {
            return encodedContents;
        }
    }

    AcceptedResult validate( String fileName, byte[] contents )
            throws UnsupportedEncodingException;
}

Commits for litesoft/trunk/GWT_Sandbox/Upload/src/org/litesoft/sandbox/csapp/server/SmallFileValidator.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

526 Diff Diff GeorgeS picture GeorgeS Thu 29 Sep, 2011 00:55:24 +0000
522 GeorgeS picture GeorgeS Tue 27 Sep, 2011 18:31:40 +0000

Upload Widget...