ยง 265-a. Defense of lawful detention.  In any action for false arrest,
  false   imprisonment,   unlawful  detention,  defamation  of  character,
  assault, trespass or invasion of civil rights brought by any  person  by
  reason  of  having  been detained on or in the immediate vicinity of the
  premises of a public library or association library for the  purpose  of
  investigation  or  questioning  as to the ownership of any materials, it
  shall be a defense to such action that the  person  was  detained  in  a
  reasonable manner and for not more than a reasonable time to permit such
  investigation  or  questioning by a peace officer or by the librarian in
  charge, his or her authorized employee or agent,  and  that  such  peace
  officer,  librarian, employee or agent has reasonable grounds to believe
  that the person so detained  was  committing  or  attempting  to  commit
  larceny  on  such  premises  of such materials. As used in this section,
  "reasonable grounds" shall include, but not  be  limited  to,  knowledge
  that  a person has concealed, unauthorized possession of  material owned
  or belonging to  the  public  library  or  association  library,  and  a
  "reasonable  time"  shall  mean  the time necessary to permit the person
  detained to make a statement or to refuse to make a statement,  and  the
  time necessary to examine employees and records of the public library or
  association library relative to the ownership of the materials.
Structure New York Laws
Article 5 - University of the State of New York
245 - State Library, How Constituted.
247 - State Law Library; Legislative Reference Library.
248 - Manuscript and Records "On File".
249 - State Library, When Open; Use of Books.
249-A - Libraries of Public Institutions of Higher Education; Access and Use.
251 - Transfers From State Officers.
252 - Other Libraries Owned by the State.
253 - Public and Association Libraries and Museums.
254 - Standards of Library Service.
255 - Establishment of a Public Library.
257 - Acceptance of Conditional Gift.
258 - Closing of Museum; Admission Fee During Certain Hours.
260-A - Meetings of Board of Trustees.
260-B - Reduction of Salaries for Purchase of Annuities.
260-C - Reduction of Salaries for Tax-Deferred Annuities.
260-D - Board of Trustees Continuing Education.
262 - Use of Public and Indian Libraries.
265-A - Defense of Lawful Detention.
269 - Library Extension Service.
270 - Acceptance of Surplus Library Books or Property.
271 - Apportionment of State Aid to Indian Libraries.
272 - Conditions Under Which Library Systems Are Entitled to State Aid.
273 - Apportionment of State Aid to Libraries and Library Systems.
273-A - State Aid for Library Construction.
274 - Use and Care of School Library.
275 - Librarians of School Libraries.
276 - Existing Rules Continued in Force.
277 - Authority to Raise and Receive Money for School Library.
278 - Authority to Transfer School Library Property to a Free Library.
280 - Penalty for Disobedience to Library Law, Rules or Orders.
281 - Loans and Extensions of Credit to Infants.
282 - Establishment of School Library Systems.
283 - Functions of School Library Systems.
284 - State Aid for School Library Systems.
285 - State Aid for Cooperation With Correctional Facilities.