Package edu.ucla.sspace.text

Examples of edu.ucla.sspace.text.TemporalStringDocument


                // process it as a single document.  For consistency, strip off
                // the USENET threading formatting, e.g. >>>, from the front of
                // each line.
                while ((line = usenetReader.readLine()) != null) {
                    if (line.contains(END_OF_DOCUMENT))
                        return new TemporalStringDocument(
                                cleanDoc(content.toString()), curDocTimestamp);
                    else {
                        int lineStart = 0;
                        // Find the first non '>' or ' ' in the line to
                        // determine where the auto-threading formatting stops.
View Full Code Here


                        long dateTime = date.equals("")
                            ? 0 :
                            Timestamp.valueOf(date).getTime();
                        String doc = String.format("%d %s",
                                dateTime, cleanDoc(content.toString()));
                        return new TemporalStringDocument(doc, dateTime);
                    } else if (inContent && content != null) {
                        // If the content builder has been created, we know this
                        // line contains content. Add it to the builder.
                        content.append(line);
                    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.text.TemporalStringDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.