Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 8f869d2

Browse files
committed
Update README.md
Added usage
1 parent ee73954 commit 8f869d2

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
11
MC+A Google Java Feeder
22
============================
33

4-
A port of the MC+A C# Library for developing simple feeders to the Google Search Appliance into Java
4+
A port of the MC+A C# Library for developing simple feeders to the Google Search Appliance into Java.
55

6-
Copyright 2013 Michael Cizmar + Associates Ltd. (MC+A)
6+
# Usage
7+
8+
```
9+
log.info("Begin delete");
10+
String feedFile = "";
11+
GSAUploader uploader = new GSAUploader(log);
12+
GSAFeed myFeed = null;
13+
14+
log.debug("Setting up empty full feed");
15+
myFeed = new GSAFeed(log, this.feedLocation, GSAFeedType.FEEDTYPE_FULL);
16+
myFeed.setDataSource(this.dataSource);
17+
myFeed.BuildHeader();
18+
19+
feedFile = myFeed.WriteXMLToFile(gsa);
20+
21+
log.info("temp xml file saved to: " + feedFile);
22+
uploader.FeedXml(feedFile, gsa, false);
23+
log.info("item submitted to gsa");
24+
25+
uploader = null;
26+
myFeed = null;
27+
```
28+
29+
# Dependencies
30+
* log4j
31+
32+
# Related Projects
33+
[GSALib C# SDK for Query GSA](http://gsalib.codeplex.com)
34+
[MC+A C# SDK for GSA](http://github.com/mcplusa/mcplusa-google-feeder-csharp/)
35+
36+
Copyright 2013 Michael Cizmar + Associates Ltd. ([MC+A](http://www.mcplusa.com/))
737

838
Licensed under the Apache License, Version 2.0 (the "License");
939
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)